Zootopia is an interactive animal encyclopedia that dynamically fetches animal data using the API Ninja's Animals API. 🐾
- 🔍 Search for any animal by entering its name.
- 📜 Displays scientific classification, habitat, diet, type, skin type, and more.
- 🎨 Beautiful UI with structured CSS styling.
- 🌍 Real-time data from an external API instead of a static JSON file.
- ✅ Shows all matching animals, not just the first result.
git clone https://github.com/yourusername/zootopia-with-api-and-github.git
cd zootopia-with-api-and-githubMake sure you have Python installed, then run:
pip install -r requirements.txtCreate a .env file and add your API key:
API_KEY=your_actual_api_key_hereTo generate the animal encyclopedia website, run:
python animals_web_generator.py💡 Enter an animal name when prompted (e.g., Fox).
💡 The generated website will be saved as animals.html.
📂 zootopia-with-api-and-github
├── 📄 .gitignore
├── 📄 .env # Stores API key (ignored in Git)
├── 📄 README.md # Project documentation
├── 📄 requirements.txt # List of dependencies
├── 📄 animals.html # Generated website
├── 📄 animals_template.html # HTML template
├── 📄 style.css # 🎨 New CSS file added
├── 🐍 animals_web_generator.py # Generates the website dynamically from API
├── 🐍 data_fetcher.py # Fetches all matching animals from API
(Screenshots attached)
Contributions are welcome! Feel free to:
- 🐛 Report bugs
- 💡 Suggest improvements
- ✨ Submit pull requests
This project is open-source and available under the MIT License.
Special thanks to API Ninja for providing the free animal API! 🦁🐯🐻