web app to create and manage agents that periodically watch other websites and send notifications using Server Side Events to your mobile phone (needs notifier-app) when certain conditions occur
(examples) notify me when:
- company A's stock value goes above X
- tomorrow's forecast changes from sunny to rainy
- certain website has news mentioning X
- ... anything you can think of ...
your agents are composed of
- url
- css selector
- condition to send notification
notifier-web uses x-ray to scrap your websites. By default it gets the innerText of the selected element(s), and also allows to retrieve attribute values or inner html markup. Some examples of the css selector syntax:
selector | result |
---|---|
#someId a | innerText of the first <a> inside element with id 'someId' |
table.main > tr@html | innerHtml of the first <tr> direct child of table with class 'main' |
div[id*="main"]@class | class attribute of the <div> whose id contains 'main' |
tr:contains(foo) td:nth-of-type(3) | innerText of the 3rd cell of the first row found containing 'foo' |
clone or download this repo, and:
npm install
npm start
Or if you just want to have a look, I try to keep the latest version running here. Log in with test/test to see some sample agents.
- node
- express
- handlebars
- sqlite
- x-ray
- sse-channel
This is just a test project for me to learn new stuff. Use it as you like and don't expect it to work flawlessly.