feedrat

    0.4.8 • 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.

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

    Installation

    npm install feedrat

    Testing

    npm test

    Usage

    const feedrat = require('feedrat');
    
    feedrat('https://www.reddit.com/r/news', function(err, url) {
    
        if (url) {
            res.send(feed)
        } else {
            res.status(500).send('No feed found')
        }
    
    });

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

    Install

    npm i feedrat

    DownloadsWeekly Downloads

    276

    Version

    0.4.8

    License

    SEE LICENSE FILE

    Unpacked Size

    4.87 MB

    Total Files

    34

    Last publish

    Collaborators

    • yphil