Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmedshahriar/youtube-comment-scraper

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
https://github.com/ahmedshahriar/youtube-comment-scraper

comment-parser csv data-mining-python data-science lxml pandas python python3 requests-library-python requests-module scraper scraping social-media web-crawler web-crawler-python web-scraping youtube youtube-crawler youtube-downloader youtube-scraper

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Parse Comments from Youtube Videos
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ahmedshahriar/youtube-comment-scraper/main)

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

The script is based on [youtube-comment-downloader](https://github.com/egbertbouman/youtube-comment-downloader)

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 100 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)](https://www.kaggle.com/ahmedshahriarsakib/scrape-youtube-comments-for-free-no-google-api)