2017-01-15 5 views
4

GoogleフィードAPIを使用して、特別なキーワードやウェブサイトのRSSフィードを検索しました。このAPIは廃止されました。ウェブサイトのRSSを検索するには別の方法が必要ですが、Googleで検索できます。私はそれの任意のサブドメインからすべてのrssを検索したいので、ウェブサイトのHTMLを解析することからrssは私には良くない。過去に例GoogleフィードAPIが廃止されました。ウェブサイトのRSSフィードを見つけるにはどうすればよいですか?

グーグルを使用して、私はieee.orgを与えるAPIフィードなど、すべてのRSSを取得:

http://www.ieee.org/rss/index.html?feedId=News_Release

http://spectrum.ieee.org/rss/fulltext

http://spectrum.ieee.org/rss/blog/automaton/fulltext

と....は、

私はウェブサイトのRSSフィードのすべてを見つけることができるAPIやサービスはありますか?

答えて

0

rss2json APIを使用すると、GoogleフィードAPIと同じフィードデータを取得できます。

var url = "http://www.espncricinfo.com/rss/content/feeds/news/8.xml"; //feed url 
var xhr = createCORSRequest("GET","https://api.rss2json.com/v1/api.json?rss_url="+url); 
if (!xhr) { 
    throw new Error('CORS not supported'); 
} else { 
    xhr.send(); 
} 
xhr.onreadystatechange = function() { 
    if (xhr.readyState==4 && xhr.status==200) { 
     var responseText = xhr.responseText; 
     var result = JSON.parse(responseText); 
     console.log(result); 
    } 
} 
function createCORSRequest(method, url) { 
    var xhr = new XMLHttpRequest(); 
    if ("withCredentials" in xhr) { 
     xhr.open(method, url, true); 
    } else if (typeof XDomainRequest != "undefined") { 
     xhr = new XDomainRequest(); 
     xhr.open(method, url); 
    } else { 
     xhr = null; 
    } 
    return xhr; 
} 
+0

のTaNxは私を助けるためにしかし、私は、RSSのURLファインダーは、JSONメソッドにRSS必要はありません..!私の質問をもう一度読んでください! –

関連する問題