/Reddit-Stock-Trends

Fetch currently trending stocks on Reddit

Primary LanguagePythonMIT LicenseMIT

Reddit Stock Trends 📈

See trending stock tickers on Reddit and check Stock perfomance


GitHub issues

Usage

Reddit API

  • Get your reddit API credentials from here
  • Follow this article to get your credentials.

Running Scripts

  • Go to src/ directory.
  • Create a praw.ini file with the following
[ClientSecrets]
client_id=<your client id>
client_secret=<your client secret>
user_agent=<your user agent>

Note that the title of this section, ClientSecrets, is important because ticker_counts.py will specifically look for that title in the praw.ini file.

  • Install required modules using pip install -r requirements.txt
  • Run ticker_count.py first
  • Now run yfinance_analysis.py
  • You will be able to find your results in data/ directory.

Contribution

I would love to see more work done on this, I think this could be something very useful at some point. All contributions are welcome. Go ahead and open a PR.

  • Join the Discord to discuss development and suggestions.

To Do

  • Turn it into python executable rather than notebook
  • Turn this into a local module that can be used in notebooks/python scripts
  • Scrape catalysts from DDs
  • Add visualisations
  • Add time series to figure out at what time did stock trend and what time did posts/comments on reddit spike
  • Scrape comments as well
  • NLP implementation for SA
  • Create a scoring model that takes into account upvotes/comments/awards and mentions

Suggestions are appreciated.

Donation

If you like what I am doing, consider buying me a coffee this helps me give more time to this project and improve.

Buy Me A Coffee


If you decide to use this anywhere please give a credit to @abbasmdj on twitter, also If you like my work, check out other projects on my Github and my personal blog.