Feedr takes in a remote feed (regardless of format type) and converts it into JSON data
npm install --save feedr
// Prepare
var Feedr, feedr, feeds;
// Include the Feedr Class
Feedr = require('feedr').Feedr;
// Create our Feedr instance, we can pass optional configuration to it here if we wanted
feedr = new Feedr();
// Prepare our feeds that we want read
feeds = {
github: {
url: "https://github.com/bevry/feedr/commits/master.atom"
},
twitter: {
url: "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=balupton&count=20&include_entities=true&include_rts=true"
}
};
// Read our feeds and return the result
feedr.readFeeds(feeds, function(err,result){
console.log(err,result.github,result.twitter);
});
log: null
our log function to uselogError: null
our error log function to usetmpPath: null
the tempory path to cache our feedr results to (will autodetect ifnull
)cache: true
whether or not we should cache the resultscacheTime: 1000*60*5
how long should the cache stay active in millisecondstimeout: 10*1000
how long should we wait before aborting the request in millisecondsxmljsOptions: null
what options should we pass to xml2js (can be a string which will reference toxml2js.defaults
)
You can discover the history inside the History.md
file
Licensed under the MIT License
Copyright © 2012+ Bevry Pty Ltd