A simple CLI tool to fetch data from various free APIs and optionally save the results to JSON files.
- 😂 Get a random joke
- 🌍 Look up country information:
- 🌤️ Check current weather in Egyptian cities
- 💾 Optionally save any result to a JSON file
git clone https://github.com/Mohab209/API-Explorer.git
cd api-explorer
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txtpython explorer.py jokepython explorer.py country egypt
python explorer.py country japan
python explorer.py country brazilpython explorer.py weather Cairo
python explorer.py weather AlexandriaAdd the --save flag to any command:
python explorer.py country egypt --save
python explorer.py weather Cairo --save
python explorer.py joke --saveapi-explorer/
├── clients/
│ ├── joke_client.py
│ ├── country_client.py
│ └── weather_client.py
├── explorer.py
├── requirements.txt
└── README.md
Mohab Ahmed
Data Analyst