0.0.4 • Published 7 years ago

snok v0.0.4

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

Snok

###Snok is a super simple RSS sniffer that uses Feedparser to scan feeds for certain keywords and then... well, that's up to you.

Installation

First you need to install Node.js. After that, run the following command:

npm install snok

Usage

Just pass Snok the feeds, the triggers and a callback to handle the returned items. Example:

const Snok = require('snok');

const feeds = [
	'https://news.ycombinator.com/rss'
]

const triggers = [
	'machine learning',
	'artificial intelligence',
	'automation',
	'AI && robotics' // Logical AND now supported
]

const notify = function (item) {
	console.log("Hey, there seems to be an interesting article out there!");
	console.log(item.link);
}

const secondsBetweenChecks = 60;

const snok = new Snok(feeds, triggers, notify);

setInterval(snok.sniff, secondsBetweenChecks * 1000);
snok.sniff();

License

This little piece of software is licensed under the terms of the ISC License.

0.0.4

7 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago