Google Feed API - 不返回Feed网址

时间:2015-01-30 22:18:20

标签: json rss google-api google-feed-api

当我使用Google Feed API的find搜索时,很多时候它都没有返回Feed的网址。

例如,find搜索“CNN”查询,指向此网址:

https://ajax.googleapis.com/ajax/services/feed/find?v=1.0&q=cnn

并返回这些结果(修剪):

{
  "responseData": {
    "query": "cnn",
    "entries": [
      {
        "url": "",
        "title": "<b>CNN</b>.com: Breaking News, US, World, Weather, Entertainment <b>...</b>",
        "contentSnippet": "Find the latest breaking news and information on the top stories, weather, <br>\nbusiness, entertainment, politics, and more. For in-depth coverage, <b>CNN</b> <br>\nprovides&nbsp;...",
        "link": "http://www.cnn.com/"
      },
      {
        "url": "",
        "title": "World News - International Headlines, Stories and Video - <b>CNN</b>.com",
        "contentSnippet": "<b>CNN</b> brings you International News stories, video and headlines from Europe, <br>\nAsia, Africa, the Middle East, and the Americas.",
        "link": "http://www.cnn.com/world"
      },
      {
        "url": "",
        "title": "U.S. News - Headlines, Stories and Video - <b>CNN</b>.com",
        "contentSnippet": "<b>CNN</b>.com brings you US News, Videos and Stories from around the country.",
        "link": "http://www.cnn.com/us"
      },
      {
        "url": "",
        "title": "<b>CNN</b> (@<b>CNN</b>) | Twitter",
        "contentSnippet": "The latest Tweets from <b>CNN</b> (@<b>CNN</b>). It&#39;s our job to #GoThere and tell the most <br>\ndifficult stories. Come with us!",
        "link": "https://twitter.com/cnn"
      },
      {
        "url": "http://gdata.youtube.com/feeds/base/users/CNN/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile",
        "title": "<b>CNN</b> - YouTube",
        "contentSnippet": "<b>CNN</b> operates as a division of Turner Broadcasting System, which is a subsidiary <br>\nof Time Warner. <b>CNN</b> identifies itself as -- and is widely known to be - the m...",
        "link": "http://www.youtube.com/user/CNN"
      }
    ]
  },
  "responseDetails": null,
  "responseStatus": 200
}

前4个结果没有附加网址。第5个确实如此,但不相关,所以我最初想要删除带有空URL的项目是行不通的。

根据developer guide上的基本查询示例,他们的示例显示填写的结果的url字段。复制和粘贴the URL they provided显示类似的结果,但没有{{1填写了字段。

除非我弄错了,否则这似乎是谷歌搜索结果的问题。

0 个答案:

没有答案