应用google的应用 首先要注册一个google账号.

url:

然后 开始配置 custom search

url:http://www.google.com/cse/

进到页面你会看到 页面右边有个 google应用之 JSON/Atom Custom Search API

单击,创建自定义搜索引擎, 进入这个页面:

google应用之 JSON/Atom Custom Search API

至于里面的细节,自己去研究吧.很简单'

配置好后, 会得到一段 js代码,这段代码 重要的部分在于:涂蓝色位置的代码(也就是 单引号内的代码),后面会用到这段代码.

google应用之 JSON/Atom Custom Search API

 

 

下面就是获取 google api key了

url:https://code.google.com/apis/console  (此网址貌似被封,搞了点网页代理也没进去.后来一位朋友推荐使用 goSeas代理,甚是好用啊!再次感谢这位朋友哦)

 

进到页面会看到:google应用之 JSON/Atom Custom Search API

这样的页面,就是全部google应用  ,一个30个哦.很强大~~不过使用时需要激活 google应用之 JSON/Atom Custom Search API

(免费得就是不好,有访问次数限制,为100次).

 

激活后,点击左侧面板的,google应用之 JSON/Atom Custom Search API

显示页面以后,点击 下面的google应用之 JSON/Atom Custom Search API.

google应用之 JSON/Atom Custom Search API

那么你就获取了 APi key,下一步就简单了.

<div >

看到这里,我想 大家都一目了然了.

下面剩下的事情就是 怎么 处理我们得到的数据了,

终于写完了,好累

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-08-20
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-01-14
  • 2021-05-09
  • 2022-12-23
相关资源
相似解决方案