A simple Python project for learning and practice purposes.
This application fetches data from an external API and generates a local website from the retrieved data.
- Fetches data from a public or private API
- Processes and formats the data
- Generates a local HTML website
- Simple and beginner-friendly project structure
- Easy to extend with templates, databases, or frontend frameworks
project/
│
├── animals_web_generator.py
├── data_fetcher.py
├── requirements.txt
├── animals_template.html
├── animals.html
├── env.txt
└── README.md
To install this project, simply clone the repository
All required Python packages are listed in requirements.txt. Install them with:
pip install -r requirements.txt
Start the project with:
python/python3 animals_web_generator.py
After execution, the generated website will be available locally. Open the file in your browser to view the generated website:
animals.html
- Request data from an API
- Parse JSON response
- Generate HTML content
- Save website locally
- Open website in browser
The API requires authentication, so create an .env file:
API_KEY = YOUR_API_KEY
This project is intended for educational purposes. You may use, modify, and extend it freely.