pagenry
v0.1.3
Published
Detecting page changes every interval of time (default 1min) to detect if page content has changed then it sends an email if change has been found
Downloads
2
Maintainers
Readme
pagenry
It's a node module that watching specific page and sends email notification .
HOW TO USE IT
$ npm install
$ npm start
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')
});
Copyright 2016 Mohamed Amged (@mamged) - Released under the MIT License