Git Product home page Git Product logo

etl-airflow-s3's Introduction

Data Extraction, Transformation, and Storage with Airflow and S3

This application fetches real estate listings from a webpage, tidies up the data, and stores it in an Amazon S3 bucket.

It uses Python libraries like requests and BeautifulSoup for web scraping, and Boto3 for interacting with S3.

Additionally, it's orchestrated by Apache Airflow, which schedules and manages the entire ETL process.

This setup automates the extraction, transformation, and loading of real estate data, making it easy to keep the listings up-to-date and accessible.

Summary of the ETL Process Application:

Data Retrieval:

  • Utilizes requests library to send HTTP requests and BeautifulSoup library to parse HTML content of a webpage.
  • Scrapes specific data from the webpage and saves it to a pandas dataframe.

Data Preprocessing and Cleaning:

  • Defines functions to extract specific details from the dataframe and clean the data.
  • Extracts details like area, number of bedrooms, suites, parking spaces, etc.
  • Cleans and preprocesses price data.

Loading Data to Amazon S3:

  • Loads AWS configuration from a JSON file.
  • Uploads a CSV string to an S3 bucket using Boto3 S3 client.

DAG and Task Dependencies:

  • Sets up a Directed Acyclic Graph (DAG) named "automated_etl_process" using Airflow.
  • DAG is scheduled to run daily.
  • Defines three tasks for data extraction, transformation, and loading, represented by PythonOperator.
  • Establishes task dependencies where the extraction task precedes transformation, and transformation precedes loading.

etl-airflow-s3's People

Contributors

dcflorencio avatar

Watchers

 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.