Skip to content

DanielGuo1/wallstreetbets_scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python

Wallstreetbets scraper

Logo

Never miss the next gamestop

About The Project

Are you afraid of missing out the next game stop? This script scrapes the subreddit wallstreetbets for the most discussed stocks and sends you an email which stocks you could add to your watchlist.

How does it work?

  1. First things first: We need Data from reddit --> Reddit API
  2. After that, we need to preprocess the data (new post, comments) --> Remove Stopwords and Flagged Words (YOLO, PUMP, ATH)
  3. Ok, but how do we get the stocks now? --> We then compare the preprocessed data with a list of all stocks listed at NASDAQ (Ticker)
  4. Count the occurence of the most mentioned stocks and finally you'll get an email that contains the most discussed stocks on wsb right now

DISCLAIMER: Do your own research! Wallstreetbets is not a trustworthy source to bet your money on.

Getting Started

If you want to run this code locally, get a copy and follow these simple steps.

Prerequisites

You need to download python in order to run the script Download Python here.

Installation

  1. Get a free API Key at https://www.reddit.com/dev/api/
  2. Clone the repo
    git clone https://github.com/DanielGuo1/wallstreetbets_scraper.git

Setup

  1. Enter your API credentials in wsb.py
    CLIENT_ID = "CLIENT_ID"
    CLIENT_SECRET = "CLIENT_SECRET"
  2. Put in your Gmail Account in wsb.py
  sender_address = "EMAIL_ADDRESS"
  receiver_address = "EMAIL_ADDRESS"
  account_password = "GMAIL_PASSWORD"
  1. Run wsb.py
    python3 wsb.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages