sarah-rss
v0.0.6
Published
This is the RSS trigger for the Sarah platform.
Downloads
6
Readme
Sarah-RSS
Features
Feed
- New article
Sample code
var Task = require('sarah').Task;
class RssTask extends Task {
constructor() {
super();
}
run(domain) {
//Create a new RSS task generator
var rss = domain.trigger('rss');
//When a new article is found
rss.feed('http://www.nu.nl/rss').on('article', (article) => {
console.log(article.title);
});
}
end(domain, callback) {
callback();
}
}
module.exports = RssTask;