Build a Online Youtube Comments Scraper in Node.js and Puppeteer – Downloads Comments in TXT File Full Project For Beginners

You are currently viewing Build a Online Youtube Comments Scraper in Node.js and Puppeteer – Downloads Comments in TXT File Full Project For Beginners

 

 

 

 

Welcome folks today in this blog post we will be building a online youtube comments scraper in node.js and puppeteer.

 

 

Live Demo

 

 

You can see the live demo of web application here

 

 

Features of Youtube Comments Scraper

 

 

  1. It scrapes all the youtube video comments in no time

The efficiency of scraper is quite good

It saves all the youtube comments in a text file and downloads it

 

 

Get Started

 

 

Now to get started you need to create a empty directory and create a node.js project by initializing this command

 

npm init -y

 

Then install all these node.js modules

 

npm i express

 

npm i ejs

 

npm i nodemon

 

npm i puppeteer

 

After installing all these modules make a index.js file inside your root directory  and copy paste the following code

 

 

index.js

 

 

 

 

Now make a views folder inside the root directory and inside it make a youtubecommentsscraper.ejs file and copy paste the following code

 

 

views/youtubecommentsscraper.ejs

 

 

 

 

 

Screeshot

 

 

 

 

 

 

DOWNLOAD SOURCE CODE

 

 

 

Leave a Reply