pagenry
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
Last updated 3 years ago by mamged .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pagenry 
SYNC missed versions from official npm registry.

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

see arrow

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: 'hello@gmail.com',
pass: 'password',
interval: 1000*60, // 1min
sendingMail: true,
alert: { // setup e-mail data with unicode symbols
    from: '"Fred Foo ????" <hello@gmail.com>', // sender address
    to: 'hello@hotmail.com', // 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

Current Tags

  • 0.1.3                                ...           latest (3 years ago)

5 Versions

  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 5
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |