A simple feed finder for node.js, inspired by the python script originally written by Mark Pilgrim and currently maintained by Aaron Swartz
- Checks if resource is a feed
- Looks for link tags
Much like the python inspiration, offers two functions, feed
and feeds
.
var feedfinder = require('./lib/feedfinder');
var log = function (err,res) { if (err) console.error(err); else console.log(res); };
feedfinder.feed('http://googleblog.blogspot.com/', log);
// http://googleblog.blogspot.com/feeds/posts/default
feedfinder.feeds('http://googleblog.blogspot.com/', log);
// [ 'http://googleblog.blogspot.com/feeds/posts/default',
// 'http://googleblog.blogspot.com/feeds/posts/default?alt=rss' ]
- RDF/RSS1.0 support
- hAtom support