youtube-video-scraper is a nodejs package to watch video on youtube automatically. It currently runs only on windows.
Installation
npm install youtube-video-scraper
Example
In this example we first import package, then we scraped data of video.
var youtube=require("youtube-video-scraper");
function get_data(response){
var data=response["body"]
console.log("video data",data)
}
youtube.get_video_info("video url",get_data)
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-scraper");
Get Video Data
youtube.get_video_info("video url")