没有配额的 JSON 搜索引擎 API 列表,例如 Bing?

发布于 2024-12-15 00:04:50 字数 1536 浏览 3 评论 0原文

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

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

发布评论

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

评论(3

冬天的雪花 2024-12-22 00:04:50

通常,服务和 API 都有使用阈值,以便能够在没有任何障碍和前期障碍的情况下进行试验和小规模使用,但也为需要该级别支持的应用程序提供更好的 SLA 和付费使用的附加选项提供了可能性。

也就是说,在programmableweb.com 上查找搜索 API 可能是一个有趣的选择 - 请参阅 http: //www.programmableweb.com/apis/directory/1?apicat=Search

我也很好奇,您在功能方面具体寻找什么,您希望在 Bing API 中看到什么等。任何反馈我都可以转达给团队(因为我是 Bing 团队的成员)。

Usually services and APIs have usage threshold, so as to enable experimentation and small-scale use without any hurdles and up-front obstacles, but open up possibility of offering better SLA and additional options with paid usage for apps that need that level of support.

That said looking on programmableweb.com for search APIs is probably an interesting option - see http://www.programmableweb.com/apis/directory/1?apicat=Search.

I am also curious, what you're specifically looking for in terms of capabilities, what you'd like to see in the Bing API etc. Any feedback and I can relay to the team (since I am on the Bing team).

请叫√我孤独 2024-12-22 00:04:50

我认为 http://www.faroo.com/ 可能会帮助你。它有每月 100 万次搜索的限制。

i think http://www.faroo.com/ may help you out. It have limit of 1million searches per month limitation.

合久必婚 2024-12-22 00:04:50

我的 bing 也有同样的问题,所以我正在尝试另一个解决方案。
我正在尝试像人类一样解析他们的 HTML 内容。他们网站的 HTML 有一些限制,所以我删掉了他们的移动版本。

如果有的话,那就是我在java中使用的代码(使用Jsoup和apache http组件):

    DefaultHttpClient client = new DefaultHttpClient();
    client.getParams().setParameter(CoreProtocolPNames.USER_AGENT, "Mozilla/5.0 (Windows NT 6.2; rv:9.0.1) Gecko/20100101 Firefox/9.0.1");
    client.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.IGNORE_COOKIES);

    int page = 0;
    String surl = "http://m.bing.com/search/search.aspx?A=webresults&Q=" + URLEncoder.encode("site:www.facebook.com/ +\"?sk=info\"+\"new york\"+\"Bar\"", "UTF-8") + "&D=Web&SI=" + (page * 10) + "&PN=" + (page);
    HttpGet get = new HttpGet(surl);
    InputStream content = client.execute(get).getEntity().getContent();
    Document doc = Jsoup.parse(content, "UTF-8", "http://www.bing.com/");
    Elements elements = doc.select(".s15 a");
    for (Element e : elements) {
        String url = e.attr("href");
        int v = url.indexOf("REDIRURL=");
        if (v > 0) {
            url = url.substring(v + 9);
            url = url.substring(0, url.indexOf("&"));
            url = URLDecoder.decode(url, "UTF-8");
        } else {
            break;
        }
        System.out.println(url + " : " + e.text());
    }

I have the same problem with bing, so i'm trying an another solution.
I'm trying to parse their HTML content like a human. Their website's HTML had some limitations, so i scraped their mobile version.

If any, that's the code i used(using Jsoup and apache http components) in java:

    DefaultHttpClient client = new DefaultHttpClient();
    client.getParams().setParameter(CoreProtocolPNames.USER_AGENT, "Mozilla/5.0 (Windows NT 6.2; rv:9.0.1) Gecko/20100101 Firefox/9.0.1");
    client.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.IGNORE_COOKIES);

    int page = 0;
    String surl = "http://m.bing.com/search/search.aspx?A=webresults&Q=" + URLEncoder.encode("site:www.facebook.com/ +\"?sk=info\"+\"new york\"+\"Bar\"", "UTF-8") + "&D=Web&SI=" + (page * 10) + "&PN=" + (page);
    HttpGet get = new HttpGet(surl);
    InputStream content = client.execute(get).getEntity().getContent();
    Document doc = Jsoup.parse(content, "UTF-8", "http://www.bing.com/");
    Elements elements = doc.select(".s15 a");
    for (Element e : elements) {
        String url = e.attr("href");
        int v = url.indexOf("REDIRURL=");
        if (v > 0) {
            url = url.substring(v + 9);
            url = url.substring(0, url.indexOf("&"));
            url = URLDecoder.decode(url, "UTF-8");
        } else {
            break;
        }
        System.out.println(url + " : " + e.text());
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文