<<<<<<< HEAD
This project analyzes Reddit data to classify posts into Positive, Neutral, or Negative sentiments. It also explores engagement trends to identify which types of posts perform better in terms of upvotes and comments.
- Fetches Reddit posts using the PRAW library.
- Performs sentiment analysis with TextBlob to classify posts.
- Visualizes:
- Sentiment distribution (Positive, Neutral, Negative).
- Engagement (post scores) by sentiment.
- Cleans and preprocesses data for meaningful insights.
- Reddit-Sentiment-Analysis
- data reddit_top_posts.csv
- Raw Reddit data cleaned_reddit_data.csv
- Cleaned data sentiment_analysis.csv
- Sentiment analysis results final_reddit_analysis.csv
- Fully processed dataset /visualizations sentiment_distribution.png
- Sentiment distribution plot engagement_by_sentiment.png
- Engagement trends by sentiment reddit_analysis.py
- Main Python script README.md
- Project documentation
- Programming Language: Python
- Libraries:
pandas
: For data manipulation.matplotlib
andseaborn
: For visualizations.textblob
: For sentiment analysis.praw
: For accessing Reddit API.
-
Clone the repository:
git clone https://github.com/your-Thiru0407/Reddit-Sentiment-Analysis.git
-
Navigate to the project directory: bash Copy code cd Reddit-Sentiment-Analysis
-
pip install praw pandas matplotlib seaborn textblob
-
Run the main script: bash Copy code python reddit_analysis.py
Sentiment Distribution: A plot showing the proportion of Positive, Neutral, and Negative posts. Engagement Trends: A boxplot showing how engagement (upvotes and comments) varies by sentiment.
Sentiment Analysis: The subreddit contains a balanced distribution of Positive, Neutral, and Negative posts. Engagement Trends: Negative posts tend to attract higher engagement, indicating that controversial or critical content gets more attention.
Data was fetched using Reddit's API via the PRAW library. Sentiment analysis powered by TextBlob.
Add word clouds for frequently used terms in Positive, Neutral, and Negative posts. Explore temporal trends in sentiment and engagement. Implement advanced machine learning techniques for sentiment analysis.
=======
A Python project that analyzes Reddit data for sentiment analysis (Positive, Neutral, Negative) and engagement insights. It includes data cleaning, sentiment classification, and visualizations to explore subreddit activity.
2d04687b9abd19c45c4bbabb2643d9c2c567efcd