有什么方法可以将 Google 网络/自定义搜索结果显示到另一个 UI 中?

发布于 2024-09-09 01:15:27 字数 304 浏览 3 评论 0原文

我目前有一个用 html / javascript 编写的与 Google 搜索 API 相关的程序,当用户搜索某个地点时,该程序将返回该地点的信息和本地地点。

Google 自定义搜索和网络结果对于返回的结果有一个标准的“UI”。我想在我的个人用户界面等中显示它们,也许在下拉列表或文本字段中。

我知道对于 Google 本地搜索,您可以通过 res.address 和 res.title 等值检索它们并在其他地方使用。

但是,我找不到有关网络搜索或自定义搜索控件的任何信息。 是否可以在另一个 UI 中检索并显示它?希望有任何帮助,谢谢!

I have currently a program written in html / javascript related to the Google search API which functions when users search a place, information and local places on it will be returned.

Google custom search and web results have a standard "UI" for their results returned. I would like to display them in my personal UI, etc maybe in a drop down list or textfield.

I know for Google local search your able to retrieve them and use in other places through values like res.address and res.title.

However, i could not find any information regarding the web search or custom search control.
Is retrieving and displaying it in another UI possible? Would appreciate any help, thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

垂暮老矣 2024-09-16 01:15:27

根据此处找到的 Google 自定义搜索文档:
http://www.google.com/cse/docs/resultsxml.html# xmlNotes

您可以通过 XML 字段拉回结果,这将为您提供我相信您正在寻找的所需控制。

According to the Google Custom Search documentation found here:
http://www.google.com/cse/docs/resultsxml.html#xmlNotes

You can pull the results back via an XML field which would give you the desired control I believe you are looking for.

眼眸里的那抹悲凉 2024-09-16 01:15:27

进行 ajax 调用

或者您可以对 google 的搜索 api http://code.google.com/apis/ ajax搜索/

or you can make an ajax call to google's search api

http://code.google.com/apis/ajaxsearch/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文