X
X
Xveeder2019-08-14 09:13:50
JavaScript
Xveeder, 2019-08-14 09:13:50

Can Node.js render website pages like a browser?

Gentlemen, I heard such a story that you can write cool parsers on a node. Because it supposedly can render pages of third-party sites.
The dream is to write a script that will parse data not on requests, but with the help of full-fledged page rendering and interpretation of js scripts. At the same time, all this is done headless and on the server.
Is it possible? If yes, specify where to dig.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex, 2019-08-14
@streetflush

https://github.com/GoogleChrome/puppeteer
https://phantomjs.org/
zombie.js.org
etc

G
grinat, 2019-08-14
@grinat

https://apify.com/store?type=acts

A
Andrey K, 2019-08-15
@kuftachev

Node.js doesn't have a built-in Web API, so it doesn't offer any advantage over any other language.... Unfortunately.
The problem is that a rare library is so up-to-date and correctly works with HTML, especially with invalid ones.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question