Version: 2.0.0
Installation
Run npm install rss-finder
Usage
'use strict';
var rssFinder = require('rss-finder');
rssFinder('http://www.nytimes.com').then(function(res) {
console.log(res);
}).catch(function(err) {
console.log(err);
});
rssFinder({
url: 'http://www.nytimes.com'
}).then(function(res) {
console.log(res);
}).catch(function(err) {
console.log(err);
});
Response
{
site: {
title: 'The New York Times - Breaking News, World News & Multimedia',
favicon: 'http://static01.nyt.com/favicon.ico',
url: 'http://www.nytimes.com'
},
feedUrls:[{
title: 'RSS',
url: 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'
}]
}
API
options
Type: String
| Object
url
Type: String
gotOptions
This object is passed to got
options directly (refer to got
documentation).
feedParserOptions
This object is passed to feedparser
options directly (refer to feedparser
documentation).
License
MIT © 2016 Gergely Kovács (gg.kovacs@gmail.com)