rss-finder

2.1.5 • Public • Published

RSS Finder NPM version Build Status Dependency Status Coverage Status

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 © 2020 Gergely Kovács (gg.kovacs@gmail.com)

Readme

Keywords

Package Sidebar

Install

npm i rss-finder

Weekly Downloads

139

Version

2.1.5

License

MIT

Unpacked Size

9.4 kB

Total Files

7

Last publish

Collaborators

  • ggkovacs