【问题标题】:Google custom search results published date谷歌自定义搜索结果发布日期
【发布时间】:2018-02-20 18:27:43
【问题描述】:

结果的发布日期可以使用&as_qdr=y15在浏览器中的谷歌搜索中显示。示例Link

我需要在 google 自定义搜索 API 上获取此信息

https://www.googleapis.com/customsearch/v1?key=KEY&q=pala%20jewellers%20cannon%20park%20coventry

API 在网页上可用时提取article:published_time,但这不适用于所有页面,因此Google also estimates a page date based on features of the page such as dates in the title and URL

如何从 Google 自定义搜索 API 获取 Google 预计页面日期?

【问题讨论】:

    标签: google-api google-custom-search


    【解决方案1】:

    只有在其 HTML 源代码中提及该页面时,自定义搜索 API 才会返回该页面的 metadata。你可以看看我对Get Date From Google Custom Search API的回答。

    浏览器中显示的日期可能是 Google 发现该页面并将其编入索引的日期。或者它可能是页面智能抓取的输出(即通过在页面内容中查找“last updated”或“published on”等关键字)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-06
      • 1970-01-01
      • 1970-01-01
      • 2018-08-04
      • 1970-01-01
      相关资源
      最近更新 更多