通过 URL 每页获得更多搜索结果 [英] Getting more search results per page via URL

查看:46
本文介绍了通过 URL 每页获得更多搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在编写一个从网络搜索中提取数据的程序.为了获得更多数据,我希望通过脚本为每个查询提取更多结果(比如 100 个左右).

I've been writing a program which extracts data from web searches. To get more data, I'd ideally like to extract more results per query through a script (let's say 100 or so).

我的问题是,有没有办法修改 Google、Yahoo 或 Bing 的 URL(按优先顺序排列),以便每次查询可以获得 10 个以上的结果?

My question is, is there a way to modify the URL for Google, Yahoo, or Bing (preference in that order) so that I can get more than 10 results per query?

对于 Google,附加 &num=99 曾经一度有效但不再有效:​​(我看到了一个类似的 &count=50 附加,但它也不适用于任何搜索引擎.

For Google, appending &num=99 used to work at one point but no longer works :( I saw a similar append of &count=50 but that didn't work on any of the search engines either.

推荐答案

num=99 对 Google 不起作用的原因是因为 num 参数的实际值是'不使用,而是与允许值列表进行比较.

The reason num=99 doesn't work for Google is because the num parameter's actual value isn't used, but is instead compared to a list of allowed values.

允许的值为 10、20、30、40、50 和 100.此字段的任何其他值都将被忽略.

The allowed values are 10, 20, 30, 40, 50, and 100. Any other values for this field are ignored.

对于 Bing,参数是 count=##,其中 ## 可以是 1-100 之间的任何值.

For Bing, the parameter is count=## where ## can be anything from 1-100.

对于 Yahoo,参数是 n=##,其中 ## 可以是 1-100 之间的任何值.

For Yahoo, the parameter is n=## where ## can be anything from 1-100.

在大多数情况下,只有当用户未指定要在搜索引擎的搜索设置中显示的搜索结果数量时,URL 参数才会起作用.否则,该 cookie 将优先.

In most cases, the URL parameter will only work if the user hasn't specified the number of search results to show in the search engine's search settings. Otherwise, that cookie will take precedence.

这篇关于通过 URL 每页获得更多搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆