Ever felt overwhelmed by thousands of comments on a YouTube video? Whether you're a content creator trying to find genuine questions, a founder looking for product feedback, or just a curious soul, Grab YT Comments is here to do the heavy lifting for you.
Want to try it out without installing anything? Click here to visit the live demo on Hugging Face!
Manual scrolling is a thing of the past. Here is how this tool makes your life easier:
- Audience Insights in Seconds: Instantly see what people are asking or complaining about without reading every single "First!" comment.
- Market Research & Feedback: Perfect for founders and marketers to gather raw, unfiltered feedback from competitors' videos or their own.
- Ready-to-Use Data: Export everything to CSV or JSON. Feed it into your favorite spreadsheet or another tool for deeper analysis.
- Simple & Human: No complex terminal commands needed once it's running. The clean interface makes it easy for anyone to use.
Here is a quick look at how the magic happens:
grab-yt-comments/
├── app.py # The heart of the app (UI & main logic)
├── scraper.py # The engine that talks to YouTube
├── classifier.py # The brain that categorizes your comments
├── requirements.txt # The "ingredients" list for the app
└── .env # Your secret vault (for the API key)
First, grab the code and move into the project folder:
git clone https://github.com/siddqamar/grab-yt-comments.git
cd grab-yt-commentsIt's always a best practice to keep your project isolated. Run these commands:
On Windows:
python -m venv venv
.\venv\Scripts\activateOn macOS/Linux:
python3 -m venv venv
source venv/bin/activateOnce your environment is active, install the required tools:
pip install -r requirements.txtTo talk to YouTube, you need a "key." It’s free and takes about 2 minutes:
- Go to the Google Cloud Console.
- Create a new project (call it "YT Scraper").
- Search for "YouTube Data API v3" and click Enable.
- Go to the Credentials tab on the left.
- Click + Create Credentials > API Key.
- Copy that key!
Create a file named .env in the root folder and paste your key there:
YOUTUBE_API_KEY=your_copied_api_key_here
Now, just run:
python app.pyA link will appear in your terminal. Open it in your browser, paste a YouTube URL, and you're good to go!
- Shorts Work Too! Just paste the URL of a YouTube Short, and it works exactly the same.
- Classification: If you enable this, the tool uses
TextBlobto guess the sentiment. It's not perfect (it's AI, after all!), but it's a massive head start for organizing feedback.
This project is licensed under the MIT License - see the LICENSE file for details.
Built for creators, researchers, and anyone who values their time. 🚀