A simple Python application that fetches weather data using the OpenWeatherMap API.
-
Install the required dependencies:
pip install -r requirements.txt
-
Get a free API key from OpenWeatherMap
-
Replace the
api_key
variable inweather_app.py
with your actual API key
Run the application:
python weather_app.py
Enter a city name when prompted to get the current weather information.
- Fetches current weather data for any city
- Displays temperature, weather conditions, and humidity
- Includes proper error handling for network issues and API errors
- Uses HTTPS for secure API communication