YouTube Sentiment Analysis is a web application that analyzes the sentiment of YouTube comments, providing insights into comment sentiment using VADER sentiment analysis and interactive visualizations.
Last updated Apr 22, 2026
43
Stars
29
Forks
2
Issues
0
Stars/day
Attention Score
33
Topics
Language breakdown
Python 100.0%
โธ Files
click to expand
README
YouTube Sentiment Analysis ๐๐๐
This project provides a web application for sentiment analysis of YouTube comments. It allows users to input a YouTube link and analyzes the sentiment of the comments associated with that video. The application also displays video information, channel information, and visualizations of the sentiment analysis results.Features โจ
- Extracts the video ID from a YouTube link.
- Retrieves comments from the specified YouTube video and saves them to a CSV file. ๐ฌ๐
- Accepts existing comment CSVs with
Comment,comments, or Xquik-styletextcolumns. - Performs sentiment analysis on the comments using the VADER (Valence Aware Dictionary and sEntiment Reasoner) sentiment analysis tool. ๐๐ ๐
- Generates bar charts and scatter plots to visualize the sentiment analysis results. ๐๐
- Retrieves video and channel information from the YouTube API. ๐บ๐
- Provides an interactive web interface using Streamlit. ๐โจ
Installation ๐ ๏ธ
- Clone the repository:
- Install the required dependencies:
- Obtain a YouTube Data API key from the Google Cloud Console and replace
YOURAPI_KEYinYoutubeCommentScrapper.pywith your actual API key.
- Run the application:
Usage ๐
- Open the application in your web browser.
- Enter a valid YouTube link in the sidebar. ๐
- Or upload an existing CSV with a
Comment,comments, ortextcolumn.
- Wait for the application to retrieve or load comments, perform sentiment analysis, and display the results. โ
- Explore the sentiment analysis results, video information, and channel information. ๐๐บ
Contributing ๐ค
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.License ๐
This project is licensed under the MIT License.๐ More in this category