获取搜索结果来自谷歌的Andr​​oid应用程序 [英] Get Search results from Google in android app

查看:114
本文介绍了获取搜索结果来自谷歌的Andr​​oid应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Andr​​oid应用程序,我想从用户的搜索查询和搜索谷歌与查询,得到的搜索结果,并填充搜索结果列表。自定义搜索API限制到每天100免费搜索。那么,有没有替代搜索?

In my android application I want to get search query from user, and search google with that query, get search results and populate a list with the search results. Custom Search API limits to 100 free searches per day. So is there any alternative for searching?

推荐答案

这是一些东西,你可以用。

This is something which you can use.

http://google.com/complete/search?output=toolbar&q = 查询

它返回的XML文件。解析XML得到的结果。 但谷歌可能会改变查询的格式未来。那是这里唯一的关注。否则,它的伟大工程。

It returns an XML file. Parse that xml to get the results. But google may change the format of the query in future. Thats the only concern here. Otherwise it works great.

对于未来的参考,请其他有用的网站下面的查询。一些回报JSON和其他的XML格式。

For future reference, note the following queries for other useful websites. Some return in JSON and others in XML formats.

<一个href="http://suggestqueries.google.com/complete/search?hl=en&ds=yt&client=youtube&hjson=t&cp=1&q=" rel="nofollow">http://suggestqueries.google.com/complete/search?hl=en&ds=yt&client=youtube&hjson=t&cp=1&q=query&alt=json

http://suggestqueries.google.com/complete/search?hl=en&ds=yt&client=youtube&hjson=t&cp=1&q=query&alt=json

http://search.yahooapis.com/WebSearchService/V1/relatedSuggestion?appid=YahooDemo&query=query

http://en.wikipedia.org/w/api.php?action=opensearch&search=query&limit=10&namespace=0&format=json

http://en.wikipedia.org/w/api.php?action=opensearch&search=query&limit=10&namespace=0&format=json

http://anywhere.ebay.com/services/suggest/?q= 查询&放大器; S = 0

http://anywhere.ebay.com/services/suggest/?q=query&s=0

http://completion.amazon.com/search/complete?method=completion&q=query&search-alias=aps&mkt=1

http://completion.amazon.com/search/complete?method=completion&q=query&search-alias=aps&mkt=1

http://api.bing.net/osjson.aspx?Query= 查询和电子市场= EN-US

http://api.bing.net/osjson.aspx?Query=query&Market=en-us

这篇关于获取搜索结果来自谷歌的Andr​​oid应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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