This Python-based web app performs sentiment analysis on YouTube video comments using natural language processing. It classifies comments into Positive, Negative, or Neutral and visualizes the results in a bar chart.
The project fetches comments using the YouTube Data API, processes them with sentiment analysis (using VaderSentiment), and renders a clean graph in a Flask-powered web interface.
- 🔍 Fetches real YouTube video comments using API
- 📊 Analyzes sentiment (Positive, Negative, Neutral)
- 📈 Displays the result in a matplotlib bar chart
- 💻 Web app built using Flask
 
- Create your API key for YouTube from: https://developers.google.com
- Download and install Conda: https://docs.conda.io
-
Create a virtual environment and install required packages:
conda create -n yt-sentiment python=3.9 conda activate yt-sentiment pip install flask google-api-python-client emoji vaderSentiment matplotlib
-
Run the app:
python app.py
- Open
http://127.0.0.1:5000
in your browser to use the application.
youtube-sentiment-analyzer/
├── app.py
├── templates/
│ └── index.html
├── static/
│ └── style.css (optional)
└── README.html
- Python
- Flask
- Google API Client
- VaderSentiment
- Matplotlib
- HTML/CSS (Frontend)
Built by Sonika
APIs powered by Google YouTube Data API
View the running project here : https://www.linkedin.com/posts/ssonikaa_datascience-python-flask-activity-7197236724547166208-SAlz?utm_source=share&utm_medium=member_desktop