Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 2.23 KB

README.md

File metadata and controls

85 lines (55 loc) · 2.23 KB

yt-comment-scraper

license

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

Setup

Linux:

#clone the repo
git clone https://github.com/animesh-chouhan/yt-comment-scraper.git
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 scraper.py ./to_scrape_sample.txt

#create a new text file with links to be scraped separated by newlines
python3 scraper.py ./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

Contributing

  1. Fork the repo (https://github.com/animesh-chouhan/yt-comment-scraper/)
  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

License

MIT License copyright (c) 2019 Animesh Singh Chouhan. Please have a look at the license for more details.