Skip to content

This project is creating a webpage for animal data by fetching data from Animal API.

Notifications You must be signed in to change notification settings

spKnowTech/Zootopia-with-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Zootopia with API

A Python-based application that fetches animal data from an API and generates a static HTML page showcasing various animals.


πŸ“Œ Features

  • DATA Retrieval: Fetches animal data from a public API.
  • HTML Generation: Creates a user-friendly HTML page displaying animal information.
  • Template Usage: Utilizes an HTML template for consistent styling.

πŸ› οΈ Installation

  1. To install this project, Clone the Repository:

    git clone https://github.com/shinegit1/Zootopia-with-API.git

    cd Zootopia-with-API

  2. Create a Virtual Environment (Optional but Recommended):

    python -m venv venv

    source venv/bin/activate # On Windows: venv\Scripts\activate

  3. Install Dependencies:

    pip install -r requirements.txt

πŸš€ Usage

  1. To use this project, Run the following command:

    python animals_web_generator.py

    Ex. Enter a name of animal: lion

  2. View the output:

    Open the generated animals.html file in your web browser to see the list of animals.

πŸ“ Project Structure

Zootopia-with-API/
β”œβ”€β”€ animals_template.html       # HTML template for the default page
β”œβ”€β”€ animals.html                # HTML template for the ouput page
β”œβ”€β”€ animals_web_generator.py    # Main script to fetch data and generate HTML
β”œβ”€β”€ data_fetcher.py             # Module to handle API requests
β”œβ”€β”€ requirements.txt            # Python dependencies
└── README.md                   # Project documentation

🐍 Dependencies

  • Python 3.x
  • Requests library
  • Python-dotenv

πŸ™Œ Acknowledgements

  • Zoo Animal API for providing the animal data.

output of animals.html file

About

This project is creating a webpage for animal data by fetching data from Animal API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published