How to parse sites where everything is based on JavaScript?

How to get content loaded via ajax when you capture the html of the tree?
I know that there is selenium, but too long through it + sometimes it is not desirable that someone saw the action script.
I'm open for suggestions on any languages and technologies
March 20th 20 at 11:42
3 answers
March 20th 20 at 11:44
March 20th 20 at 11:46
Use something in the style of phantomjs
The phantom is outdated, the puppeteer in the subject - Laila.Simonis commented on March 20th 20 at 11:49
March 20th 20 at 11:48
I looked in chrome in the console of the developer to send ajax requests and which parameters are passed in the header, dalie using php curl to make the request and substitute the same parameters as the simulated browser. In response comes either ready - made html was being parsed on the json comes phpquery or even better not need responsivity.

Find more questions by tags JavaScriptParsing