【问题标题】:Get **last month or last year** google news using api使用 api 获取**上个月或去年** google news
【发布时间】:2016-05-31 23:09:45
【问题描述】:

在过去的一个月和过去的一年里,我一直在尝试获取谷歌新闻。 我尝试了以下网址,但我无法弄清楚日期参数是什么以及应该传递给它的内容。

  1. http://news.google.com/news/section?cf=all&ned=us&q=healthcare&num=10&output=rss

  2. http://news.google.com/news/feeds?hl=en&q=healthcare&ie=utf-8&num=10&output=rss

【问题讨论】:

  • 在 SU 上发帖。这在 SO 上无效。

标签: api rss google-search google-custom-search google-news


【解决方案1】:

根据source

  • as_qdr=m 上个月
  • as_qdr=y 过去一年

请注意,由于 Google News API 是deprecated,可能某些参数不再起作用。

也请查看此answer on Stack Overflow and its comments 以获取有关 Google 新闻 API 的更多信息。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多