It's a node module that watching specific page and sends email notification .
$ npm install pagenry --save
To use Gmail you may need to configure "Allow Less Secure Apps" Also scroll down in this "page" and find allow less secure apps
unless you are using 2FA in which case you would have to create an Application Specific password. You also may need to unlock your account with "Allow access to your Google account" to use SMTP. Example
var pagenry = require('pagenry');
var watcher = new pagenry({
url: 'http://mashable.com',
emailAccount: '[email protected]',
pass: 'password',
interval: 1000*60, // 1min
sendingMail: true,
alert: { // setup e-mail data with unicode symbols
from: '"Fred Foo ๐ฅ" <[email protected]>', // sender address
to: '[email protected]', // list of receivers
subject: 'Hello You have an alert from pagenry โ', // Subject line
text: 'Hello world ๐ด', // plaintext body
html: '<b>Hello world ๐ด</b>' // html body
}
});
watcher.start(function () {
console.log('changed')
});
watcher.sendAlertNow(); //send message immediatly
Copyright 2016 Mohamed Amged (@mamged) - Released under the MIT License