A simple Python weather application that fetches real-time weather data using the OpenWeatherMap API.
- Current weather description
- Temperature in Celsius
- Feels-like temperature
- Humidity information
- Error handling for invalid city names
- Network error handling
- Python 3.x
- requests
Install dependencies:
pip install -r requirements.txt
- Create a free account at OpenWeatherMap.
- Generate an API key.
- Open
weather_report_function.py. - Replace:
w_api_key = "YOUR_OPENWEATHER_API_KEY"with your actual API key.
python weatherapp.py
weather-app/ │ ├── weatherapp.py ├── weather_report_function.py ├── requirements.txt └── README.md
Md. Sazid Al Mafi