Coder Social home page Coder Social logo

redditdataengineer's Introduction

Data Pipeline with Reddit, Airflow, Celery, Postgres, S3, AWS Glue, Athena, and Redshift

This project provides a comprehensive data pipeline solution to extract, transform, and load (ETL) Reddit data into a Redshift data warehouse. The pipeline leverages a combination of tools and services including Apache Airflow, Celery, PostgreSQL, Amazon S3, AWS Glue, Amazon Athena, and Amazon Redshift.

Table of Contents

Overview

The pipeline is designed to:

  1. Extract data from Reddit using its API.
  2. Store the raw data into an S3 bucket from Airflow.
  3. Transform the data using AWS Glue and Amazon Athena.
  4. Load the transformed data into Amazon Redshift for analytics and querying.

Architecture

RedditDataEngineering.png

  1. Reddit API: Source of the data.
  2. Apache Airflow & Celery: Orchestrates the ETL process and manages task distribution.
  3. PostgreSQL: Temporary storage and metadata management.
  4. Amazon S3: Raw data storage.
  5. AWS Glue: Data cataloging and ETL jobs.
  6. Amazon Athena: SQL-based data transformation.
  7. Amazon Redshift: Data warehousing and analytics.

Prerequisites

  • AWS Account with appropriate permissions for S3, Glue, Athena, and Redshift.
  • Reddit API credentials.
  • Docker Installation
  • Python 3.9 or higher

System Setup

  1. Clone the repository.
     git clone https://github.com/airscholar/RedditDataEngineering.git
  2. Create a virtual environment.
     python3 -m venv venv
  3. Activate the virtual environment.
     source venv/bin/activate
  4. Install the dependencies.
     pip install -r requirements.txt
  5. Rename the configuration file and the credentials to the file.
     mv config/config.conf.example config/config.conf
  6. Starting the containers
     docker-compose up -d
  7. Launch the Airflow web UI.
     open http://localhost:8080

redditdataengineer's People

Contributors

kmlspktaa 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.