Sunday, 7 May 2017

Node rss reader indefinitely

I am trying to do a non-stop rss reader with the ortoo-feedparser module.

What is the simplest solution to check the new feed every x minutes ? Do I need a database ?

This is my code :

var feedparser = require('ortoo-feedparser');

var url = "website.com/rss.xml";

feedparser.parseUrl(url).on('article', function(article){
    console.log(article.title);
});



via Kaayo25

No comments:

Post a Comment