My-Zootopia is a Python-powered app that fetches real-time animal data and transforms it into a stunning, card-style HTML page.
Whether you're interested in 🐺 wolves, 🐵 monkeys, or 🐍 snakes, just type a name and watch your custom animal encyclopedia come to life!
- 🔍 Search for any animal by name
- 🌎 View key details like location, type, and diet
- 🎨 Generates a beautiful HTML page with animal cards
- 🐙 Shows a friendly fallback message if no data is found
git clone https://github.com/yourusername/My-Zootopia.git
cd My-ZootopiaTo install this project, simply clone the repository and install the
dependencies listed in requirements.txt using:
pip install -r requirements.txtThis project requires an API key for making requests to the API.
After cloning the repository, create a .env file in the root directory with the following content:
API_KEY=your_actual_api_key_here
You can get your API key from API Ninjas.
To use this project, run the following command:
python animals_web_generator.pyThen open the newly generated animals.html file in your browser to see the results!
-
🐍 Python
-
🐜 Requests (API calls)
-
🦎 API Ninjas – Animals API
-
🐛 dotenv for environment variables
-
🦚 HTML + CSS (templating and styling)
Want to make this zoo even wilder? 🦜 Contributions are welcome!
-
🐣 Fork the repo
-
🪼 Create a new branch
-
🐕 Make your changes
-
🦍 Submit a pull request
Add these to your GitHub repository for better visibility and searchability: python animals html biodiversity education open-data api-ninjas