Skip to content

Fetches comments, analyzes sentiment (Positive/Negative/Neutral) using TextBlob, visualizes results, and summarizes key themes with Gemini AI. Supports Hindi-to-Hinglish translation. Perfect for creators & researchers!

Notifications You must be signed in to change notification settings

vishalprajapati15/YouTube-Comments-Sentiment-Analyzer-with-Visualizations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

YouTube Sentiment Analyzer πŸŽ₯πŸ“Š

YouTube Sentiment Analysis

A Python script that analyzes sentiment distribution in YouTube comments using TextBlob, visualizes results with Matplotlib, summarizes findings using Gemini AI, and provides audio feedback via text-to-speech.

Features ✨

  • Comment Extraction: Fetches comments from any YouTube video
  • Text Processing: Removes emojis and processes multilingual comments
  • Sentiment Analysis: Performs sentiment analysis (Positive/Negative/Neutral) using TextBlob
  • AI Summarization: Generates intelligent summaries using Gemini 1.5 Flash AI
  • Text-to-Speech: Converts analysis results to audio using gTTS
  • Data Visualization: Creates visualizations of sentiment distribution
  • Multilingual Support: Handles Hindi comments with optional transliteration
  • Real-time Analysis: Provides instant sentiment insights for any YouTube video

Tech Stack πŸ› οΈ

Component Technology
Sentiment Analysis TextBlob
AI Summarization Gemini 1.5 Flash
Text-to-Speech gTTS (Google Text-to-Speech)
Data Visualization Matplotlib
Text Processing Regex, Googletrans
Comment Extraction YouTube Data API

Installation πŸ“¦

# Install required packages
!pip install googletrans==4.0.0-rc1
!pip install textblob matplotlib
!pip install google-generativeai
!pip install regex
!pip install gTTS
!pip install playsound
!pip install --upgrade google-api-python-client

# Download TextBlob corpora
!python -m textblob.download_corpora

About

Fetches comments, analyzes sentiment (Positive/Negative/Neutral) using TextBlob, visualizes results, and summarizes key themes with Gemini AI. Supports Hindi-to-Hinglish translation. Perfect for creators & researchers!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published