JatinAgrawal0
youtube-comment-sentimental-analysis
Python

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
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-style text columns.
  • 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_KEY in YoutubeCommentScrapper.py with 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, or text column.
  • 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

ยฉ 2026 GitRepoTrend ยท JatinAgrawal0/youtube-comment-sentimental-analysis ยท Updated daily from GitHub