简体   繁体   English

如何从Google检索单个结果?

[英]How to retrieve Single result from google?

I am developing the android application in which user gives the key to search that key has to be search in google and read the output of google (like google voice search). 我正在开发android应用程序,其中用户提供密钥来搜索该密钥,必须在google中搜索并读取google的输出(例如google语音搜索)。 The google gives the multiple results as per the key but i need only first result among the all results fetched by the google. 谷歌根据密钥给出了多个结果,但是我只需要谷歌获取的所有结果中的第一个结果。

How can i do this? 我怎样才能做到这一点?

Is there any references? 有参考吗?

Thanks in advance. 提前致谢。

使用参数num=1 ,即:

https://www.google.pt/search?num=1&q=test

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM