This mini project demonstrates how to fetch real-time weather data using the OpenWeatherMap API, clean it using Python, and visualize it using line and bar charts.
- Fetch current weather for selected cities
- Handle rate limits and errors gracefully
- Secure API key management with
.env
- Generate line plot (temperature) and bar chart (humidity)
- Python
requests
pandas
matplotlib
python-dotenv
- OpenWeatherMap API
-
Clone the repo:
git clone https://github.com/arun-data-analyst/business-data-sourcing.git cd business-data-sourcing
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file:OPENWEATHERMAP_API_KEY=your_actual_key_here
-
Run the notebook or Python script.
lineplot.png
: City vs Temperaturebarchart.png
: City vs Humidity
🚫 No API key is shared in this repo. Please use your own OpenWeatherMap key.