Skip to content

A simple Python ETL pipeline that fetches real-time weather data from the OpenWeather API and saves it to a CSV file.

Notifications You must be signed in to change notification settings

sshossen/weather_ctg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฆ Weather ETL Pipeline

A simple Python ETL pipeline that fetches real-time weather data from the OpenWeather API every 5 minutes and saves it to a CSV file.

โš™๏ธ Tech Stack

  • Python 3
  • requests
  • pandas
  • schedule

๐Ÿง  Features

  • Extracts live weather data using OpenWeather API
  • Transforms JSON into structured data
  • Loads incremental data into CSV
  • Runs automatically every 5 minutes

๐Ÿš€ Setup

  1. Clone this repository:
    git clone  https://github.com/sshossen/weather_ctg.git
    cd weather-api-etl
  2. Create virtual environment and install dependencies:
    `python -m venv venv
    venv\Scripts\activate
    pip install -r requirements.txt`
    
  3. Edit these lines in weather_etl.py:
    api_key = 'b38e08962eb2cd65e5644744af042b9a'
    city_name = 'Chittagong'
    	
  4. Run the script:
    python weather_etl.py

About

A simple Python ETL pipeline that fetches real-time weather data from the OpenWeather API and saves it to a CSV file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages