Answer the question
In order to leave comments, you need to log in
PHP cURL loading ajax posts vk?
How to force the parser to load the entire page to the very end?
if php doesn't know how to work with js, then you need to send some kind of post request to issue all posts?
I also tried using UserAgent -
kate 'KateMobileAndroid / 48.2 lite-433 (Android 8.1.0; SDK 27; arm64-v8a; Google Pixel 2 XL; en)'
wrote that all posts should load immediately, but the page refused to load with this agent at all
<? require_once 'phpQuery-onefile.php' ?>
<? $url = 'https://vk.com/meshalkinamv' ?>
<? $UserAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36' ?>
<!-- ----------------------------------------------------- -->
<?
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $UserAgent);
$res = curl_exec($ch);
curl_close($ch);
$res = iconv("Windows-1251", "UTF-8", $res);
print_r($res);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question