This project performs sentiment analysis on Reddit comments using natural language processing techniques. It utilizes the Reddit API to collect comments from specified subreddits and applies machine learning models to analyze the sentiment of the collected comments.
- Collect comments from Reddit using the Reddit API.
- Preprocess text data for sentiment analysis.
- Train machine learning models for sentiment classification.
- Analyze sentiment trends over time.
- Visualize sentiment analysis results using graphs and charts.
- Clone the repository:
git clone https://github.com/hash1khn/reddit-sentiment-analysis.git
- Install the required dependencies:
pip install -r requirements.txt
- Set up Reddit API credentials by creating a Reddit application here.
- Update the
config.py
file with your Reddit API credentials. - Run the
reddit_sentiment_analysis.py
script to start collecting and analyzing Reddit comments:python reddit_sentiment_analysis.py
This project is licensed under the MIT License - see the LICENSE file for details.
- praw - Python Reddit API Wrapper
- scikit-learn - Machine Learning Library in Python
- matplotlib - Data Visualization Library in Python