rss-finder-for-smartfeed

1.0.1 • Public • Published

RSS Finder NPM version Build Status Dependency Status Coverage Status

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 (gg.kovacs@gmail.com)

/rss-finder-for-smartfeed/

    Package Sidebar

    Install

    npm i rss-finder-for-smartfeed

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    24.9 kB

    Total Files

    16

    Last publish

    Collaborators

    • oisu