This project analyzes Reddit sentiment to predict stock market trends. It uses natural language processing to analyze Reddit posts and comments about stocks, and correlates this sentiment with actual stock price movements.
- Install the required dependencies:
pip install -r requirements.txt- Create a
.envfile with your Reddit API credentials:
REDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_client_secret
REDDIT_USER_AGENT=your_user_agent
- Run the main script:
python stock_sentiment.py- Fetches Reddit posts and comments about specific stocks
- Analyzes sentiment using natural language processing
- Correlates sentiment with stock price movements
- Provides basic trend predictions
This is a beginner-friendly project for educational purposes. Always do your own research before making investment decisions.