好的,谢谢,我已经尝试过并且可以正常工作,但是我现在的问题是,当页面显示时,在控制台中我对 api 有 200 多次调用,如何使显示的 tiktok 页面停止在控制台中调用它们?
<?php
$proxy = 'proxy:port';
$proxyauth = 'user:password';
$url = "https://www.tiktok.com/@user";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxyauth);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)');
curl_setopt($ch, CURLOPT_REFERER, 'https://www.tiktok.com/');
curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>