duanlisha2335 2011-02-22 14:12
浏览 17
已采纳

Google Sets API

Looking for a Google Sets API. Unfortunately Google doesn't provide one.

Preferably for PHP.

I was using this script but it stopped working today, I think Google blocked my IP to access to Google Sets from my machine. It returns following warning message when trying to access Google Sets:

Warning: fopen(http://labs.google.com/sets?hl=en&q1=java&btn=Small+Set+(15+items+or+fewer)): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable

But strangely when I open Google Sets from the browser it opens up without any problem and I could perform query in it.

Where is the problem?

How to resolve it?

And finally does anyone know which is the best way to get results of Google Sets from PHP?

Thank you so much.

UPDATE 1 Have just found this PHP class also, but the error message is the same:

Warning: file_get_contents(http://labs.google.com/sets?hl=es&q1=bmw&q2=ferrari): failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable

So, I think the only problem is that Google Administrator (Agent) blocked my IP.

  • 写回答

2条回答 默认 最新

  • doulan0297 2011-02-22 15:00
    关注

    According to Google Labs Terms of Use (in which Sets belongs):

    2. Proper Use. The content and software on this Site is the property of Google and/or its suppliers and is protected by U.S. and international intellectual property laws. Accordingly, you agree that you will not copy, reproduce, alter, modify, create derivative works, or publicly display any content (except for your own personal, non-commercial use) from the Site. You also agree that you will not use any robot, spider, other automated device, or manual process to monitor or copy any content from the Site. Furthermore, the Site is provided to you for your own personal use, and it may not be used for any commercial purposes. For example, you may not do any of the following: use the Site to sell a product or service; use the Site to increase traffic to your Web site for commercial reasons, such as advertising sales; take the results from the Site and reformat and display them, or mirror any portion of the Site on your Web site; or "meta-search" the Site. If you wish to use any portion of the Site for commercial purposes, please contact us for more information. Any use of the Site that infringes upon Google's intellectual property rights or that is for commercial purposes will be investigated and Google shall have the right to take appropriate civil and criminal legal action.

    Unless you have an explicit agreement with them, they can check and block your usage of the service when they notice you use it improperly.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥60 pb数据库修改或者求完整pb库存系统,需为pb自带数据库
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路