我試圖讓谷歌搜索結果的HTML使用file_get_contents
獲得谷歌的搜索結果,PHP
所以像這樣的搜索詞
intitle:index.of 」last modified」 」parent directory」 (mp3|wma|ogg) "test" -htm -html -php -asp
:
$file = file_get_html("http://www.google.com/search?q=intitle:index.of%20%20%94last%20modified%94%20%20%94parent%20directory%94%20%20%28mp3|wma|ogg%29%20%20%22test%22%20-htm%20-html%20-php%20-asp");
(基本上是這樣的搜索詞:
http://www.google.com/search?q=intitle:index.of 」last modified」 」parent directory」 (mp3|wma|ogg) "test" -htm -html -php -asp
)
和做503
有誰知道我能得到這個工作?
由於
截至2010年11月1日,Google Web Search API已被正式棄用(因此只允許有限的請求)。新API可在https://developers.google.com/custom-search/v1/overview – krishna 2013-09-07 17:15:39