Skip to content

kromme/reddit-stonks-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit-stonks-bot

Scrape most mentioned stock tickers from subreddits like Wallstreetbets and Wallstreetbetsnew. Use it to go to the moon!
wsb

Usage

First get your credentials from Reddit. Either place them in a creds.yaml-file in the same folder as the stonks_bot.py or in environment variables. In either case use the following keys: REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_REDIRECT_URL, REDDIT_USER_AGENT.

The output is printed and exported to output/mentions.csv in append-mode.

Install requirements

git clone https://github.com/kromme/reddit-stonks-bot.git
cd reddit-stonks-bot
pip install -r requirements.txt

Example YAML:

REDDIT_CLIENT_ID: xxXXXxxXXxXXxX
REDDIT_CLIENT_SECRET: xxxx_xxxxxxxxxxxxxxxxxxxxxxxxxx
REDDIT_REDIRECT_URL: http://localhost:8080
REDDIT_USER_AGENT: testscript by u/xxxxxxx-xxxxxx

From Command Line

python stonks_bot.py

From Python

from stonks_bot import StonksBot
sb = StonksBot(number_of_posts=2000)
sb.find_tickers_on_reddit()

About

Scrape most mentioned stock tickers from Reddit. Wallstreetbets and Wallstreetbetsnew

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages