How to download the HTML code of a website with Node.js?

How to download the HTML code of a website with Node.js?
0.0 0

#1

I have an array of links like this one:
['example1.com', 'example2.com', 'example3.com', 'example4.com', 'example5.com']

I want to get only the HTML source code of all the 5 links using Node.js. Please advise how can I do that?


#2

You are wanting a web scraper of sorts. Do a search for “node web scraper” and you should find many suggestions.