feed-parser
Version:
It parses an Atom/RSS feed and de-cluters the article objects to return a simple array of articles.
12 lines (11 loc) • 316 B
JavaScript
var feedBlogger = require('../index.js');
const feedURL = 'https://blanketcoffee.blogspot.in/atom.xml';
var callbackFunction = function(data) {
//data You have the DATA now. Use it.
console.log(data);
};
try {
feedBlogger.parse(feedURL, callbackFunction);
} catch (error) {
throw new Error(error);
}