A web app that analyzes trending stocks on Reddit and provides live sentiment analysis using machine learning.
- Fetches trending stocks from Reddit (r/wallstreetbets)
- Analyzes sentiment of posts mentioning each stock
- Displays trending stocks with sentiment bars
- Search for any stock ticker and get live Reddit sentiment
- Install dependencies:
pip3 install -r requirements.txt
- Set up Reddit API credentials (see below)
- Run the app:
python3 app.py
- Visit http://127.0.0.1:5010
- Get credentials at https://www.reddit.com/prefs/apps
- Set environment variables:
REDDIT_CLIENT_IDREDDIT_CLIENT_SECRETREDDIT_USER_AGENT
- Uses VADER sentiment for fast prototyping (can upgrade to transformers later)
- For demo/learning purposes only
Built with Flask, Reddit API, and ML sentiment analysis.