现在有什么替代方法可以解决Google Web搜索API的问题? [英] What are the alternatives now that the Google web search API has been deprecated?

查看:111
本文介绍了现在有什么替代方法可以解决Google Web搜索API的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google Web搜索API已被弃用,并被自定义搜索API取代(请参阅 http://代码。



我想搜索整个网页,但它看起来像使用新的API,只能搜索自定义网站。

有没有办法以编程方式搜索整个网页?我能够从Java程序中使用JSON查询旧的API。

解决方案

您可以像浏览器一样发送它们,然后解析html,这就是我一直以来所做的,甚至是像Youtube这样的东西。


Google Web Search API has been deprecated and replaced with Custom Search API (see http://code.google.com/apis/websearch/).

I wanted to search the whole web but it looks like with the new API only custom sites can be searched.

Is there a way to search the whole web programmatically? I was able to query the old API using JSON from a Java program.

解决方案

You could just send them through like a browser does, and then parse the html, that is what I have always done, even for things like Youtube.

这篇关于现在有什么替代方法可以解决Google Web搜索API的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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