rss-braider/examples/simple.js

15 lines
384 B
JavaScript
Raw Normal View History

2014-12-26 22:47:48 +00:00
var RssBraider = require('../index'),
feeds = {};
2015-01-31 00:23:51 +00:00
feeds.filefeed = require("./config/feed").feed;
2014-12-26 22:47:48 +00:00
var braider_options = {
feeds : feeds,
indent : " "
};
var rss_braider = RssBraider.createClient(braider_options);
rss_braider.processFeed('filefeed', 'rss', function(err, data){
if (err) {
return console.log(err);
}
console.log(data);
});