2012-12-21 33 views
4

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

例如,用户将输入

{keyword1, source1, beginDate, endDate} 

和输出将是

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

的时限可能甚至一年,就像从1月1日到2011年1月1日2012年 谷歌新闻看起来很有希望,但API已被弃用,你只能在当年的两个月内搜索。 我看着纽约时报的API,这正是我所期待的,但对于多个来源,不仅仅是纽约时报。 Feedzilla不提供按来源或时间框架功能搜索,仅允许检索100篇文章。

我一直在环顾网络,找不到任何有用的东西,任何帮助将不胜感激。

+0

也许你可以采取免费的Web服务路线? – Zeddy

+1

我不确定到底会有什么东西可以公开提供给您,但您可以始终构建您的RSS解析工具,存储在本地数据库中,然后使用SQL或类似工具从数据库中读取数据。如果您需要帮助,请给我发邮件,我正在考虑自己制作一个这样的项目。 – 2012-12-29 20:44:03

+0

你也可以尝试Feedly api:https://developer.feedly.com – Supertecnoboff

回答

1

您是否试过News is free及其API

我没有试过,但它似乎有一个directSearch operation,这似乎允许在时间(和标签)过滤...

> 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 
0

你可以有一个请访问www.feedzilla.com, 这会为您带来类别过滤器的新闻提要。