5

我正在寻找一个新闻 API,它允许我将特定关键字和来源映射到特定时间范围内发布的文章数量。

例如,用户将输入

{keyword1, source1, beginDate, endDate} 

输出将是

There are xx articles.
Display the titles and url of articles

时间范围甚至可以是一年,例如从 2011 年 1 月 1 日到 2012 年 1 月 1 日。谷歌新闻似乎很有希望,但 API 已被弃用,您只能在当年的两个月内搜索。我查看了纽约时报 API,这正是我正在寻找的,但不仅仅是 NYT 的多个来源。Feedzilla 不提供按来源或时间框架搜索的功能,而且它只允许检索 100 篇文章。

我一直在网上四处寻找,找不到任何有用的东西,任何帮助将不胜感激。

4

2 回答 2

1

您是否尝试过News 是免费的及其API

我没有尝试过这个,但它似乎有一个directSearch操作,它似乎允许过滤日期(和标签)......

> directSearch(login, password, search, params)

This method searches the news, depending on given parameters. The analog of newsisfree advanced search.
application_key (string) - application key;
login (string) - user login;
password (string) - user password;
search (string) - search string;
params (string) - hash array of additional search parameters (very important to use 'params' array values order as shown below);
as_language - language code (e.g. en,fr,it)
numitems - number of items to search (max 100)
source_id - source id
as_sourcename - source name
as_category - category id
as_author - author name
as_topics - topics
as_date_from - from date (YYYY/MM/DD)
as_date_to - to date (YYYY/MM/DD)
as_pop_from - from popularity (0
as_exact - exact match
as_synonym - use synonyms
as_relevance - by relevance
as_intitle - only in titles
于 2012-12-29T20:51:09.093 回答
0

您可以查看 www.feedzilla.com,它为您提供带有类别过滤器的新闻提要。

于 2014-04-21T10:50:14.747 回答