Giter Site home page Giter Site logo

shanerodrigues / reddit-watchexch-scraper Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.45 MB

Simple scraper made with the Flask framework that finds listings for a particular query each day and sends an email at a specific time with a short description of each listing.

HTML 32.41% Python 67.59%

reddit-watchexch-scraper's Introduction

Reddit-Watchexch-Scraper

Simple scraper made with the Flask framework that finds listings for a particular query each day and sends an email at a specific time with a short description of each listing.

Example email

Listings

Technologies used

Celery and RedisBeat - To create a task schedule with crontab to execute at a particular time each day.

Python Reddit API Wrapper (PRAW) - To find listings for a specified query.

Mailgun API - To send emails.

MongoDB as PyMongo - To keep track of user information such as saved queries, scheduled time.

Flask - Web framework for the website.

Installation

  1. Clone repository

  2. Configure .env file with env.sample

    (Optional) - configure settings.json with your gmail email and app password if you want to use gmail instead of mailgun. Use send_email_handler instead of send_email_mailgun in scraper.py

  3. Install libraries in requirements.txt

  4. Install redis

Starting up project

Start up redis server in redis directory

#Start these commands in the current directory where main.py is located
#Start worker
celery -A lib.tasks.celery worker -l info

#Start beat in separate terminal
celery -A lib.tasks.celery beat -S redisbeat.RedisScheduler --loglevel=debug

# Start flask in separate terminal
flask run

reddit-watchexch-scraper's People

Contributors

shanerodrigues avatar

Stargazers

Abdalrahman Saqr avatar

Watchers

James Cloos avatar  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.