是否有任何Google建议API的文件?
所有针对Google的搜索建议API都会显示包含过时信息或非工作脚本的页面.
例.在Google.com上输入"app"时,谷歌会建议使用Apple,Applebees等.
har*_*316 42
你可以想象,它已经改变了.
较新的网址现在是http://clients1.google.com/complete/search?hl=en&output=toolbar&q=YOURSEARCHTERM
或者甚至更新:http : //suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=YOURSEARCHTERM
vas*_*111 18
工作实例摘要:
从这个问题的工作示例:
http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=theory
从这个问题的工作示例:
http://suggestqueries.google.com/complete/search?output=firefox&q=theory
从上面的mhawksey评论工作示例:
http://google.com/complete/search?client=chrome&q=theory
这里client=chrome可以更改为其他浏览器客户端.例如对于Firefox,它看起来像:
http://google.com/complete/search?client=firefox&q=theory
来自mahoor13评论上面的工作示例:
google.com/complete/search?output=toolbar&q=theory
来自dhiraj-pandey 回答 "如果你想要国家特定的建议,你需要在网址中添加&gl =".这只适用于工具栏的链接!
因此,例如印度的工作国家具体示例将是:
google.com/complete/search?output=toolbar&q=theory&gl=in
单词使用%20或+在它们之间分开.例如:
http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=a%20mykeyword
要么
http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=a+mykeyword
也可以从这里获得YQL的两个建议(第一个消化chuck norris,第二个steven seagal):
select * from xml where url in (
‘http://google.com/complete/search?output=toolbar&q=chuck+norris’,
‘http://google.com/complete/search?output=toolbar&q=steven+seagal’
)
Run Code Online (Sandbox Code Playgroud)
使用上面的代码给出:
谷歌提供的有关建议的一些信息:http://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/xml_reference/query_suggestion.html
小智 14
尝试http://google.com/complete/search?output=json&q=YOURSEARCHEDTERM或用于XML输出http://google.com/complete/search?output=toolbar&q=YOURSEARCHEDTERM
我还发现使用Google Search API的非常有用的工具,它基于Python和Flask http://ubersuggest.org
正如@ Harvest316所说,您可以使用这些网址获取建议,但如果您想要特定于国家/地区的建议,则需要在网址中添加&gl =.例如,如果我搜索印度,那就是
http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=YOURSEARCHTERM&gl=in
| 归档时间: |
|
| 查看次数: |
61377 次 |
| 最近记录: |