Minor Project Reportaditya
Minor Project Reportaditya
BACHELORS OF TECHNOLOGY
(AIML) 2022-2026
By :-
Signature of Supervisor
Jaipur, Rajasthan
Acknowledgement
This project would not have been completed without the help, support,
comments, advice, cooperation and coordination of various people.
However, it is impossible to thank everyone individually; I am hereby
making a humble effort to thank some of them.
Certificate
This is to certify that the project entitled “Youtube Video Summarizer" is a bonafide
work carried
out as Minor Project Midterm Assessment (Course Code: CS3270) in partial fulfillment
for the award of the degree of Bachelor of Technology in Computer Science and
bearing registration number 229310037, during the academic semester VI of year 2024-
2025.
In today's digital age, social media has become a powerful platform for
communication, marketing, and public opinion. With millions of users
posting comments daily on platforms like YouTube, Instagram, X
(formerly Twitter), and Facebook, it becomes important to analyze and
understand the sentiment behind these comments. Our project, titled
"Social Media Comment Analyzer", aims to address this need by
providing a simple, user-friendly application that performs sentiment
analysis on comments from these platforms.
The application allows users to input a URL from any supported social
media post, and then uses Natural Language Processing (NLP)
techniques to categorize the comments into Positive, Negative, and
Neutral sentiments. It also generates word clouds to visualize the most
frequently used words, helping in better interpretation of public
opinion.
1. Introduction
1.1 Objective of the Project
1.2 Brief Description
1.3 Technology Used
1.3.1 Hardware Requirements
1.3.2 Software Requirements
2. Design Description
2.1 Flow Chart
3. Project Description
3.1 Database
3.2 Table Design
3.3 Table Description
6. Implementation
6.1 Technologies Used
The objective of this project is to develop a Social Media Comment Analyzer, a tool that
can scrape comments from social media platforms like YouTube, Instagram, Facebook,
and Twitter. Once the comments are scraped, the tool performs sentiment analysis on
the comments to categorize them as positive, negative, or neutral. The goal is to help
users understand how people feel about a specific post or video by analyzing the
comments, which can be very helpful for social media managers and content creators
The Social Media Comment Analyzer is a sentiment analysis tool comments from social
media platforms. By leveraging Natural Language Processing (NLP) and machine
learning, the application identifies the sentiment expressed in user comments and
classifies them as positive, negative, or neutral. This is particularly useful for businesses,
influencers, and researchers who wish to understand public perception and user
engagement.
The application’s main feature is its sentiment classification system, which is powered by
a trained machine learning model. It processes input text in real-time and presents
results on an interactive dashboard. It includes a secure login and signup feature that
stores user sessions and comment history in a database for future reference.
Additionally, the system can support bulk comment input for batch processing and
sentiment breakdowns.
The frontend is built using Streamlit, offering a responsive, user-friendly interface for input
and visualization. The backend is handled via Flask, where APIs process data and
interface with the sentiment model. The system also includes multilingual support and
can be extended in the future to include emotion detection, sarcasm handling, and
sentiment trend visualization.
1.3 Technology Used
Development Tools:
Browser Compatibility:
3.1 Database
The system is built with a Streamlit frontend for user interaction and a Flask backend
for handling business logic, NLP processing, and API integrations. It integrates web
scraping via Selenium and leverages libraries such as NLTK, TextBlob, and WordCloud
for sentiment analysis and data visualization.
The application offers multilingual support and additional features like word cloud
generation, language detection, and confidence scoring, making it useful for social
media managers, businesses, researchers, and individuals looking to analyze
engagement and sentiment.
Scalable Schema to allow future features like emotion tagging, spam detection,
or sentiment trends.
Support for Multi-platform Input, storing metadata such as platform type and
post URL.
Logging System to track user activity and previous analysis history.
1. User Table
2. Comment Table
3. Sentiment Table
The Social Media Comment Analyzer provides a seamless, user-friendly interface for
analyzing sentiments of user-submitted comments. It allows users to input social media
comments and view sentiment-based classification outputs in real-time. The system’s
input/output forms are designed to ensure intuitive interactions and efficient processing
of user data, while offering flexible features like login/signup, comment history, and
export options.
The input design focuses on simplicity, accessibility, and accuracy to ensure effective data
collection from users.
User Inputs:
1. User Authentication Details – Users must either sign up or log in to access the
analyzer.
o Email ID
o Password (stored securely using encryption)
2. Comment Input – Users can enter one or more comments from social media
platforms (e.g., YouTube, Twitter, Instagram) in a text field for sentiment
analysis.
3. Filter Options (Optional) – Users may apply filters such as:
o Language preference (for multilingual analysis in future versions)
o Analysis type (Single comment / Bulk comments)
4. Content Management Actions – Users can:
o View previously analyzed comments.
o Delete older entries.
o Download the analysis report.
User Outputs:
Output Formats:
On-Screen Display – Results are shown dynamically on the web app interface.
Downloadable Files – Users can save reports as PDF, DOCX, or CSV files.
Database Storage – Sentiment analysis results are stored and linked to the
corresponding user for future access.
5. Testing & Tools Used
Testing plays a crucial role in ensuring that the Social Media Comment Analyzer functions
smoothly, delivers accurate results, and provides a user-friendly experience. This
section outlines the testing strategies and tools used during development.
1. Functional Testing
Checked whether users could input valid URLs, scrape comments, and
receive correct sentiment analysis.
Verified login/signup flows, sentiment classification (Positive, Negative, Neutral),
and result display.
Ensured that all UI elements such as input forms, buttons, and visual outputs
were intuitive and responsive.
Validated error messages for invalid inputs or connectivity issues.
3. Performance Testing
4. Security Testing
◆ Flask
◆ Streamlit
Used for building an interactive and clean frontend interface.
Displays user inputs, graphs, sentiment results, and login dashboard.
◆ Selenium
Automates the browser to open social media pages and extract comments.
Supports dynamic content scraping, especially from platforms like YouTube.
◆ TextBlob
◆ MySQL
These tools together ensure the system is interactive, efficient, and capable of analyzing
social media sentiment accurately.
6. Implementation
The implementation phase of this project brings together several technologies and tools
to create a fully functional web-based application that can analyze social media
comments. The system follows a structured workflow that integrates web scraping,
natural language processing (NLP), sentiment analysis, and user interaction.
1. User Login/Signup:
o Users begin by creating an account or logging in using their email and
password.
o Credentials are encrypted and stored securely in the User table in the
MySQL database.
2. Input Social Media URL:
o Once logged in, the user pastes a URL (such as a YouTube video link) into
the input field.
3. Comment Scraping Using Selenium:
o Selenium automatically launches a browser session and scrolls through
the post to collect all available comments.
o Extracted comments are sent to the backend for processing.
4. Preprocessing and Language Handling:
o Comments are cleaned by removing unnecessary symbols, URLs, emojis,
etc.
o If the comments are in a language other than English, they are translated
using available translation APIs or models.
5. Sentiment Analysis with TextBlob:
o Each cleaned comment is passed to the TextBlob sentiment analyzer.
o The sentiment is abelled as Positive, Negative, or Neutral.
o Confidence scores may be included to reflect the certainty of the
classification.
6. Result Display and Visualization:
o Sentiment analysis results are shown to the user as text output and
through visual elements such as:
Pie chart for sentiment distribution
Word cloud to show frequent words
Tabular summary of comments and their sentiment labels
7. Storing Results:
o The raw comments and their respective sentiment labels are stored in
the database.
o This allows users to access past analyses and track changes over time.
7. Conclusion and Future Work
7.1 Conclusion
The Social Media Comment Analyzer project successfully achieves its core goal: to provide
a platform for users to understand the general sentiment of public comments on
social media posts. The project integrates tools like Flask, Selenium, TextBlob, and
Streamlit to deliver a user-friendly and effective system for sentiment analysis.
Future Enhancements
Even though the current system performs well, there are many areas where it can be
enhanced:
The tool serves as a practical application of modern technologies like Python, NLP, and
web development, and stands as a strong foundation for future AI-powered sentiment
platforms.
9. Bibliography
Journal References
[1] Cambria, E., Schuller, B., Xia, Y., & Havasi, C. (2013). “New avenues in opinion mining
and sentiment analysis.” IEEE Intelligent Systems, 28(2), 15–21.
[2] Liu, B. (2012). “Sentiment analysis and opinion mining.” Synthesis Lectures on Human
Language Technologies, 5(1), 1–167.
[3] Pang, B., & Lee, L. (2008). “Opinion mining and sentiment analysis.” Foundations and
Trends® in Information Retrieval, 2(1–2), 1–135.
Web Pages
[10] Flask Documentation. (2023). “Flask Web Framework.” Flask Pallets Project,
https://flask.palletsprojects.com/ (Accessed: Jan. 12, 2024).
[11] Selenium WebDriver Documentation. (2023). “Selenium Automation.” Selenium
HQ, https://www.selenium.dev/documentation/ (Accessed: Jan. 12, 2024).
[12] TextBlob Documentation. (2023). “Simple NLP with TextBlob.” TextBlob Docs,
https://textblob.readthedocs.io (Accessed: Jan. 15, 2024).
[13] YouTube API Documentation. (2023). “YouTube Data API v3.” Google Developers,
https://developers.google.com/youtube/registering_an_application (Accessed: Jan. 15,
2024).
[14] Streamlit Documentation. (2023). “Building Interactive Web Apps with Python.”
Streamlit, https://docs.streamlit.io (Accessed: Jan. 20, 2024).