Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    parsersspublic

    parserss Build Status

    Small RSS parser for mere convenience, using feedparser and request.

    It should work for Atom as well.

    Returns a very convinient JSON with the meta field with all the data from the feed and an array on the field articles with all the articles.

    Usage

    var rss = require('parserss');
    
    rss('http://domain.tld/file.xml', 10, function (err, res) {
      console.log(err);
      console.log(res);
    });
    

    API

    • rss
      • url -- URL of the feed
      • max_number - max number of articles, defaults to 10. 0 would mean as much as possible.
      • callback - First parameter is Error, second is the resultant JSON file.

    Author

    © 2014, Jose Luis Rivas <me@ghostbar.co>

    License

    The files are licensed under the MIT terms.

    install

    npm i parserss

    Downloadsweekly downloads

    3

    version

    0.2.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar