robust-rss-finder
v2.1.5
Published
Find rss feeds url
Downloads
2
Readme
RSS Finder
Version: 2.1.5
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);
});
// or
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
rssFinder(options)
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 © 2021 Gergely Kovács ([email protected])