I
I
Ivan2020-04-30 15:26:53
PHP
Ivan, 2020-04-30 15:26:53

How to emulate included js for file_get_contents or curl?

Hello everyone! Tell me how to emulate the included js for file_get_contents or curl?

And the problem is this. I parse the page, and the content is sent to me, they say you have disabled js. What to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xmoonlight, 2020-04-30
@xmoonlight

headless browser.
For example phantom.js

M
Maxim Colesnic, 2020-04-30
@colesnic89

You can also use Puppeteer . He helped me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question