youtube-video-comment-replies-scraper
v1.0.0
Published
A nodejs package to fetch replies of video comment of youtube video automatically.
Downloads
4
Maintainers
Readme
youtube-video-comment-replies-scraper is a nodejs package to fetch video comment replies on youtube using browser automation. It currently runs only on windows.
Installation
npm install youtube-video-comment-replies-scraper
Example
In this example we first import package, then we get the comment replies of video.
var youtube=require("youtube-video-comment-replies-scraper");
function get_data(response){
var replies_data=response["body"]
}
function get_replies(){
youtube.get_comment_replies(get_data)
}
function show_more(){
youtube.click_show_more_replies(get_replies)
}
function open_replies(){
youtube.click_view_replies('comment text',show_more)
}
function scroll(){
youtube.keypress("pagedown",open_replies)
}
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-video-comment-replies-scraper");
Open video
youtube.open("video url")
Load comments
youtube.keypress("pagedown")
Click on view replies
youtube.click_view_replies("comment text whose replies need to fetch")
Get Replies
youtube.get_comment_replies()