1.0.0 • Published 8 years ago

lightweight-rss-parser v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

parserss Build Status Code Climate

Small RSS parser for mere convenience, using feedparser and request. Based on ghostbar/parserss

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', 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.

Tests

Just run npm test.

Author

© 2016, Can Erdogan <canerdogan.net>

License

The files are licensed under the MIT terms.

1.0.0

8 years ago

0.3.0

8 years ago