feedrat

0.4.12 • Public • Published

Feedrat

Search, find and report a web page's RSS feed


pipeline status coverage website Liberapay Liberapay Ko-Fi

Features

Searches for a feed using two strategies: usual suspects (url/feed, url/rss.xml, etc.) and DOM scraping in two places : The very URL, and then the domain thereof.

  • Parse the DOM of the URL for a link rel
  • Parse the DOM of the domain for a link rel
  • Check the URL for usual suspects
  • Check the domain for usual suspects

And returns an array containing the URLs found.

Installation

npm install feedrat

Testing

npm test

Usage

const feedrat = require('feedrat');

feedrat('https://www.reddit.com/r/news', function(err, feeds) {

    if (feeds) {
        res.send(feeds)
    } else {
        res.status(500).send('No feed found')
    }

});

Brought to you ♫ by yPhil Please consider helping icon by Mattahan (Paul Davey)

Package Sidebar

Install

npm i feedrat

Weekly Downloads

7

Version

0.4.12

License

SEE LICENSE FILE

Unpacked Size

5.04 MB

Total Files

26

Last publish

Collaborators

  • yphil