Google Search API网站限制 [英] Google Search API site limit

查看:214
本文介绍了Google Search API网站限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Google自定义搜索API的文档: http://code.google.com/apis/customsearch/docs/start.html#sites 最多可以搜索5000个网站.这真是la脚.有什么办法可以解决,以便我可以使用Google的搜索结果搜索整个网络?

According to the Google custom search API's docs: http://code.google.com/apis/customsearch/docs/start.html#sites there is a limit of up to 5000 sites that you can search. This is pretty lame. Is there any way around this so that I can search the entire web using Google's results?

此外,如果您提供了一堆与超过5000个网站匹配的网址格式,那么API将如何选择和选择要包含哪些网站,哪些要排除?

Also if you include a bunch of url patterns that matches greater than 5000 websites, how would the API pick and choose which sites to include and which to exclude?

推荐答案

这是用于自定义搜索,而不是常规的Google搜索.例如,如果您拥有abc.com和acme.com,则可以在这两个域上为客户设置自定义搜索.这样,他们就可以在您的网站上搜索信息. 5,000个站点的限制实际上是巨大的.我不确定我能想到可以使用那么多指定站点的应用程序.

This is for a custom search, not a normal Google search. For example, if you owned abc.com and acme.com, you could set up a custom search on those two domains for your customers. That way, they could search your sites for information. The 5,000-site limit is actually huge. I'm not sure I can think of an application that would use that many specified sites.

我认为您正在寻找的是Google Web Search API,该API搜索了整个Google.不幸的是,现在折旧了. (参考: http://code.google.com/apis/websearch/)您可以仍然使用旧的API,但这是有风险的,因为Google保留随时将其关闭的权利.他们还将限制您每天执行的搜索次数(尽管我找不到该限制的具体数字).以下是其条款的链接: http://code.google.com/apis/websearch /terms.html

I think what you are looking for is the Google Web Search API, which searched all of Google. Unfortunately, that is now depreciated. (reference: http://code.google.com/apis/websearch/) You can still use the old API, but it is a risk because Google reserves the rights to turn it off at any time. They will also limit the number of searches you perform per day (although I can't find a specific number for that limit). Here is a link to their terms: http://code.google.com/apis/websearch/terms.html

如果您确实希望将其直接集成到代码中,我建议您从其他搜索引擎查看API.另一种建议是将您的搜索信息放在界面后面,并立即将其编码到Google.然后,如果他们将其关闭或出现更好的结果,则可以更改搜索代码以指向最新,最好的API.

I would recommend looking at an API from another search engine if you really want to integrate it directly into your code. A different suggestion would be to put your search information behind an interface and code it to Google for now. Then if they turn it off or something better comes out, you could change just the search code to point to the newest and best API.

这篇关于Google Search API网站限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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