Find rss feeds url
Version: 2.1.5
Run npm install rss-finder
'use strict';
var rssFinder = require('rss-finder');
rssFinder('http://www.nytimes.com').then(function(res) {
console.log(res);
}).catch(function(err) {
console.log(err);
});
// or
rssFinder({
url: 'http://www.nytimes.com'
}).then(function(res) {
console.log(res);
}).catch(function(err) {
console.log(err);
});
{
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'
}]
}
Type: String
| Object
Type: String
This object is passed to got
options directly (refer to got
documentation).
This object is passed to feedparser
options directly (refer to feedparser
documentation).
MIT © 2021 Gergely Kovács ([email protected])