A
A
Alex2020-07-25 13:06:09
PHP
Alex, 2020-07-25 13:06:09

How to parse a php page bypassing the sata loading screen?

I ran into a problem while parsing the site.
Working with curl or file_get_contents I get the loading screen of the site (after which the site page itself should appear), is it possible to bypass this loading screen? How can you set a timer after which information is taken from the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-sem, 2020-07-25
@etrid

You need to either study through the Network tab of the developer tools what XHR requests the site makes and play them, or use a headless browser (a la https://github.com/puppeteer/puppeteer or some adaptation for php - for example, https:// github.com/nesk/puppeteer ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question