Why Habr in parsing behaves incorrectly?

Using the library is trying to parse the page with Habra, but it sometimes does not work, file_get_content it gives you the same result
$url='http://habrahabr.ru/post/251871/';
$html = SimpleHTMLDom::file_get_html($url);
echo $html;die;

The result is like a normal HTML code, and https://monosnap.com/image/1kQHsjYpsBgLnFD0YlkYW60...
And for one page it may initially be negative for several times, then after 5 minutes, it normally loads.
PS I know about the presence of Habr API, but access to it is closed. Similar issues do not affect this problem or give an answer. Thanks in advance
September 19th 19 at 00:19
1 answer
September 19th 19 at 00:21
Normally try to log in as normal user on Habr. With UserAgent and Cookie. To do this, use CURL, or well send the necessary headers using file_get_content and already sparsely HTML code feed Your library

Find more questions by tags HabrPHP