snokdeprecated

A super simple RSS sniffer

Usage no npm install needed!

<script type="module">
  import snok from 'https://cdn.skypack.dev/snok';
</script>

README

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.