Skip to content

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

 
 
 

Contributors

Languages