E
E
EVOSandru62015-08-28 04:03:27
PHP
EVOSandru6, 2015-08-28 04:03:27

Why doesn't simple_html_dom parse the site and save it to a file_get_html object?

Good afternoon,
I use the simple_html_dom library for all sorts of experiments, it was not possible to parse the site https://www.1xbet.com/line/
Previously, it was parsed:

$html = file_get_html('https://www.1xbet.com/line/');
Received a healthy object. And it was possible to access any node of the DOM tree. In addition to those generated by Ajax and JS
What could be the reason?! Maybe there is some kind of protection? Can it be bypassed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sindrom, 2015-08-28
@sindrom

The only solution in this case is to download the content of the page via curl https://www.1xbet.com/line/ , check the response code 200 and there is content.
If there is, then convert it to a house, via str_get_html.
PS This site doesn't even load from my browser at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question