Bing 搜索字符串
我想知道是否可以根据以下信息构建自己的 Bing Uri 搜索字符串。
我正在尝试搜索某个域和区域设置。例如;
在“http//:www.kotaku.com”中搜索“playstation 3”,然后将我带到 es-es 区域语言(西班牙语)的 bing 结果页面。
任何人都可以提供链接以供更多阅读或简单的解决方案?
提前致谢。
编辑:看起来 Bing API 返回搜索结果供用户在自己的网站中使用。这不是我想要的,我只是想重定向到包含我想要的结果的 Bing 页面。
I was wondering if I could construct my own Bing Uri search string's based on the following information.
I am trying to search over a certain domain and locale. For instance;
search here "http//:www.kotaku.com" for "playstation 3" and take me to a bing results page that is in es-es locale language (spanish.)
Can anyone give a link for more reading or an easy solution?
Thanks in advance.
Edit: Looks like the Bing API returns search results for one to use in their own site. This is not what I want, I just want to redirect to the Bing page with the results I want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我想知道我们如何才能找到像 Avant 论坛网站上找到的那样的 Bing 搜索字符串:
http://forum.avantbrowser.com/viewtopic.php?f=13&t=14092
在Avant Browser中,我们可以输入搜索字符串,这样每当我们在搜索框中输入单词时,我们就可以自动使用该特定的搜索引擎。自从谷歌在他们的安全搜索 goo-goo 上大放异彩以来,我就想使用 Bing。问题是我不知道如何语法。希望这对您有所帮助,就像我自己寻求帮助一样。谢谢!
I was wondering myself how we can come up with Bing search strings like the one found on Avant's Forum Site:
http://forum.avantbrowser.com/viewtopic.php?f=13&t=14092
In Avant Browser, we can input search strings so we can automatically use that particular search engine whenever we type a word on the search box. I wanted to use Bing ever since Google made ga-ga over their safe search goo-goo. Problem was I didn't know how to syntax that. Hope this helps you in the same way that I'm asking for help myself. Thanks!
我认为对您来说最简单的方法是尝试使用该网站构建高级查询,然后查看格式。对于您的查询,我可以建立以下网址:
http://www.bing.com/search?q=playstation+3+language%3Aes+site%3Awww.kotaku.com
%3A 是一个 url 编码的冒号。
因此基本上您可以将高级参数应用为 language:es 或 site:mysite.com (其中冒号是 url 编码的)。
I think the easiest for you is to try to build up your advanced query using the site and then look at the format. For your query I can build up this url:
http://www.bing.com/search?q=playstation+3+language%3Aes+site%3Awww.kotaku.com
The %3A is a url encoded colon.
So basically you can apply advanced parameters as language:es or site:mysite.com (where the colon is url encoded).
如果您想用英语搜索,请在 URL 中添加 language:en。例如,如果搜索词是“test”,那么您的 URL 将为 http:// /www.bing.com/search?q=test+language%3Aen
If you want to search in English add language:en in your URL. For example, if the search term is "test" then your URL will be http://www.bing.com/search?q=test+language%3Aen
根据Bing API 2.0,您可以像这样搜索:
QUERY_STRING
是包含所有参数的 URL 编码字符串。本文档还包含一些如何通过 JavaScript、PHP 和 C# 使用服务的示例。
对于您的示例,它应该类似于:
或采用人类可读的格式:
您可以 获取您的
APP_ID< /code> 这里
完全免费。
According to Bing API 2.0 you can search like so:
QUERY_STRING
is URL encoded string containing all your params.This document also contains some example how to use service with JavaScript, PHP and C#.
For your example it should be like:
or in human readable format:
You can get your
APP_ID
here absolutely free.