0.0.2 • Published 3 years ago
website-check v0.0.2
website-check
An utility to monitor changes in websites and send emails when found.
Usage:
$ npm i -g website-check
$ website-check /path/to/config.jsonFormat of config.json:
{
"gmail": {
"user": "user@gmail.com",
"pass": "abcdefghijklmnop",
"to": "user@gmail.com"
},
"websites": [
{
"name": "NintendoRingFit",
"url": "https://store.nintendo.co.jp/category/STORELIMITEDGOODS/HAC_Q_AL3PA.html",
"selector": ".item-cart-and-wish-button-area",
"ignoreText": "大変混雑している",
"interval": 300000
}
]
}gmailuser: User account.pass: Application-specific password.to: Optional, Array or String.
websiteArray of websites to monitor.url: The URL to monitor.interval: Check interval in ms.selector: Optional, CSS selector used for filtering content.ignoreText: Optional, Array or String, do nothing if the page contains the text.
Source code is published under public domain.