This project is a full-stack web application that classifies YouTube video comments using machine learning. It provides a clean interface to fetch, analyze, and visualize comments for content creators and community managers.
- ๐ฅ YouTube Comment Scraper: Fetches comments using YouTube Data API based on Channel ID.
- ๐ง ML Model Integration: Classifies comments into categories like Positive, Negative, Neutral, and Questions.
- ๐ Dark/Light Mode: Toggle-friendly interface with theme persistence.
- ๐ Analysis Dashboard: View categorized comments and data insights on a dedicated page.
- โ๏ธ Visitor Feedback System: Allows users to submit comments/feedback that are dynamically rendered on the page.
- ๐ฑ Responsive Design: Fully mobile-optimized with animated transitions and collapsible menus.
- ๐ Dynamic Image Display: Rotating images in the About section for visual enhancement.
project/ โ โโโ app.py # Flask backend logic โโโ sentimentscraper.py # YouTube scraper + comment classifier โโโ requirements.txt # Python dependencies โ โโโ templates/ โ โโโ index.html # Homepage with input form and feedback section โ โโโ about.html # View analysis & dynamic comment section โ โโโ static/ โ โโโ style.css # Global styling โ โโโ script1.js # JS logic (theme toggle, API calls, feedback system) โ โโโ images/, videos/ # Visual assets
- Frontend: HTML5, CSS3, JavaScript, Font Awesome
- Backend: Python 3, Flask
- APIs & Libraries:
- YouTube Data API
- Custom ML classification logic (
classify_text()) google-api-python-clientflask,requests, etc.
- ๐ Analyze audience sentiment on YouTube
- ๐ฎโโ๏ธ Flag potential spam or hate comments
- ๐ฌ Collect and showcase community feedback
- ๐จโ๐ซ Demonstrate full-stack ML web integration
- User enters a valid YouTube Channel ID.
- App fetches recent video comments using the YouTube API.
- Each comment is run through a machine learning classifier.
- Results are sorted into categories and displayed visually.
- Users can also leave feedback, which appears dynamically.
- All feedback is submitted via a form on the homepage.
- Submitted messages are stored (temporarily or permanently depending on backend setup).
- New feedback is dynamically added to the community section.
Made with โค๏ธ by Harshit Bansal