Giter Site home page Giter Site logo

mamged / pagenry Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 7 KB

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

License: MIT License

JavaScript 100.00%

pagenry's Introduction

pagenry

It's a node module that watching specific page and sends email notification .


HOW TO USE IT

$ 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

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: '[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

pagenry's People

Contributors

mamged avatar

Stargazers

 avatar Davor Minchorov avatar  avatar ithinco avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.