2012-12-21 39 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, 這會爲您帶來類別過濾器的新聞提要。