Google Web Search API returns only the first 100 result set

柔情痞子 提交于 2019-12-18 05:09:24

问题


Is there a way to search and retrieve all results for a particular query in Google? I want to use Custom Search API, but the starting index of the result set can be 99 at most (http://code.google.com/apis/customsearch/v1/using_rest.html) Which means I can retrieve only the first 100 items. In my case, there are around 4000 items in the result set.

Thanks.


回答1:


You can retrieve about 1000 results: 100 pages with 10 results each. See: http://code.google.com/apis/customsearch/v1/using_rest.html#query-params

It seems as if you can't go beyond that, though.

UPDATE: I stand corrected. It's only 100.




回答2:


BTW - The new Google API can return more than 10 results per page, limited by 20 results per page, using num=20

http://www.google.com/cse/docs/resultsxml.html



来源:https://stackoverflow.com/questions/5008689/google-web-search-api-returns-only-the-first-100-result-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!