So I am trying to parse HTMl from a website but all I get is menu because body has a preloader. Links are NSFW so I added a wildcard to them. My question is how do I parse whole page and not only menu? Creating a timeout doesn't seem to help (or I am doing the timeout wrong).
<?php
$ctx = stream_context_create(array(
'http' => array(
'timeout' => 50
)
)
);
$stars_list_page = file_get_contents("https://www.por*pics.com/?q=blue+angel", 0, $ctx);
$dom_obj = new DOMDocument();
@$dom_obj->loadHTML($stars_list_page);
var_dump($dom_obj);
?>