Giter Club home page Giter Club logo

pappupinger's Introduction

pappuPinger

A node script that pings our university website and notifies us about changes.

Installation

  • Prerequisites

    • nodejs
    • git

    Install these using your favourite package manager if they aren’t present on your system.

  • Clone the repository

    git clone https://github.com/mountAP/pappuPinger
  • Move to the cloned folder

    cd pappuPinger
  • Install dependencies

    npm install

Start pinger.js

node pinger.js

  • For 3600000 ms, the check is performed once every hour. Feel free to set it to any value. However, values below 2000 ms are not recommended.
  • Rest will be self explanatory. Don’t worry.

NOTE

You need not bother about connection drops, terminal crashes or device restarts. We’ve got you covered. Once started, Pinger saves a local copy of the website and compares it with the latest version in subsequent checks after restarts or network connection resets. So no change goes unnoticed regardless of whether or not you were offline for some period.

Just restart the script using node pinger.js inside the pappuPinger directory.

Bonus for Termux Users

You get a system notification when a change occurs, you must have termux-api installed.

Extending the script

You may use the script with any of the websites to monitor text changes. Just change the url inside pinger.js. Caution The script may not work as expected for websites with dynamic content E.g. ‘amazon.in’.

Known issues

Does not detect text within <span> tags.

Project name justification

Ours is a cool University, called PPU (Patliputra University), situated at the heart of Bihar. Very affectionately, we like to call it “Pappu University” and hence the project name.

pappupinger's People

Contributors

abgnpr avatar

Watchers

 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.