youtube-comments-scraper
v1.0.0
Published
A nodejs package to fetch comments of youtube video automatically.
Downloads
4
Maintainers
Readme
Youtube-Comments-Scraper is a nodejs package to fetch comments of youtube video automatically. It currently runs only on windows.
Installation
npm install youtube-comments-scraper
Example
In this example we first import package, then we get the comments of video.
var youtube=require("youtube-comments-scraper");
function get_data(response){
var data=response["body"]
}
function fetch_comments(){
youtube.video_comments(get_data)
}
function scroll(){
youtube.keypress("pagedown",fetch_comments)
}
youtube.open("video url",scroll)
DataKund
datakund is needed for browser automation. As soon as this package is imported in code, automated browser will open up.
Import
var youtube=require("youtube-comments-scraper");
Get comments
youtube.video_comments()