Youtube Comment Scraper

Scrapes YouTube channel comments

2 min, 260 words

Categories: YouTube


Scrapes all the comments from all videos present in a YouTube channel. Can also be used to get the video list from a given YouTube channel.



#clone the repo
git clone
cd yt-comment-scraper

#install python3
sudo apt-get install python3

#install node and npm
sudo apt-get install nodejs
sudo apt-get install npm

#install dependencies
npm install express --save
npm install puppeteer --save

#run the api on localhost
node scraper_api.js

#testing the python scraper
python3 ./to_scrape_sample.txt

#create a new text file with links to be scraped separated by newlines
python3 ./your_text_file.txt

Usage example

Sample resonse of api hosted on localhost:

Sample comments scraped:

For more examples and usage, please refer to the Wiki.

Built With


  1. Fork the repo (
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request