rss-finder-for-smartfeed
v1.0.1
Published
Find rss feeds url
Downloads
3
Readme
RSS Finder
Version: 1.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);
});
// 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 © 2016 Gergely Kovács ([email protected])