feedrat
v0.4.12
Published
Search, find and report a web page / site's RSS feed
Downloads
32
Readme
Feedrat
Search, find and report a web page's RSS feed
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)