我需要解析这个网址http://www.google.com/trends/fetchComponent?q=swine&cid=TOP_QUERIES_0_0&export=3
我尝试过:
<?php
$ch = curl_init("http://www.google.com/trends/fetchComponent?q=swine&cid=TOP_QUERIES_0_0&export=3");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$html = curl_exec($ch);
curl_close($ch);
echo $html;
?>
但我只收到
您已达到配额限制。请稍后再试。
但是,如果我可以从网络浏览器打开该页面(我没有登录)并且我可以更改搜索词等。所以从网络浏览器它可以工作,但是在使用 PHP 和 CURL 时 id 不会。