GithubHelp home page GithubHelp logo

philipobiorah / airflow_project Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 9 KB

Weather Data ETL Project : This project involves a Python script that performs an Extract, Transform, Load (ETL) process for weather data. The script retrieves current weather information for a specified location and stores this data in an AWS S3 bucket.

Python 100.00%
airflow airflow-dags api weather-api

airflow_project's Introduction

Weather Data ETL Project

This project involves a Python script that performs an Extract, Transform, Load (ETL) process for weather data. The script retrieves current weather information for a specified location and stores this data in an AWS S3 bucket.

Key Components and Functionalities

1. Data Extraction

  • Utilizes the requests library to make an API call to OpenWeatherMap API.
  • Retrieves current weather data for London, using an API key.

2. Data Transformation

  • Parses the JSON response to extract relevant weather information, including:
    • City ID
    • City name
    • Timezone
    • Temperature
    • Humidity
    • Wind speed
  • Converts the timestamp into a readable date and time format using datetime.

3. Data Loading

  • Converts the data into a pandas DataFrame for easier manipulation.
  • Checks for an existing current_weather_data.csv file in an AWS S3 bucket.
  • Appends new data to the existing file or creates a new file if it doesn't exist.

4. AWS S3 Integration

  • Uses Boto3 library for interacting with the S3 service.
  • Handles reading from and writing data to the S3 bucket.

5. Error Handling

  • Includes handling for scenarios where the S3 file does not exist, creating a new file as needed.

6. Use Case

  • Can be scheduled for regular execution, enabling continuous weather data collection.
  • Useful for applications such as weather trend analysis, forecasting, or integration into larger data systems.

Conclusion

This project demonstrates efficient gathering, processing, and storage of external API data using Python, pandas, and AWS S3, exemplifying automated data pipeline processes for real-time data feeds.

airflow_project's People

Contributors

philipobiorah avatar

Stargazers

 avatar Aditya avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.