Here is the main idea.
I can scrape Html with the following Javascript code.
const request = require('request')
const cheerio = require('cheerio');
let options = {
url: 'https://targetwebsite.com',
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.47'
}
};
request(options, function(err, resp, html) {
if (!err) {
console.log(html);
}
})
Now I just needed to know how can I do the whole process.