Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.43 KB

README.md

File metadata and controls

33 lines (20 loc) · 1.43 KB

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)