Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ahmedshahriar/youtube-comment-scraper
- Owner: ahmedshahriar
- License: apache-2.0
- Created: 2021-03-12T09:13:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-03T03:14:19.000Z (over 2 years ago)
- Last Synced: 2023-03-14T04:10:25.343Z (over 1 year ago)
- Topics: 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
- Language: Jupyter Notebook
- Homepage:
- Size: 256 KB
- Stars: 22
- Watchers: 1
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 downloadSORT_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)