我试图让谷歌搜索结果的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