Skip to content

This script will dump youtube video comments to a CSV from youtube video links. Video links can be placed inside a variable or list or CSV

License

Notifications You must be signed in to change notification settings

FreshMulgogi/youtube-comment-scraper

 
 

Repository files navigation

Parse Comments from Youtube Videos

made-with-python Binder

UPDATED: Reconfigured to align with updates to youtube-comment-downloader which the script is originally based on. Overcomes the 20 comment limit from previous version. Adds new data columns for video title, publish date, views, and video URL.

Originally by Ahmed Shahriar Sakib GitHub : https://github.com/ahmedshahriar

This script will dump youtube video comments to a CSV from youtube video links. Video links can be placed inside a variable or list or CSV

It requires pandas and requests modules

To run :

pip install -r requirements.txt

python ytb_comment_scraper.py

By default, the script will download most recent 150 comments

The comments will be dumped to a CSV file

You can set the parameter values as you wish -

COMMENT_LIMIT : How many comments you want to download 

SORT_BY_POPULAR : filter comments by popularity (0 for True , 1 for false)

SORT_BY_RECENT : filter comments by recently posted (0 for True , 1 for false)

Access to kaggle Notebook - Scrape Youtube Comments For Free (No Google API)

About

This script will dump youtube video comments to a CSV from youtube video links. Video links can be placed inside a variable or list or CSV

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 93.2%
  • Python 6.8%