Giter Club home page Giter Club logo

wcc's Introduction

web change checker

This is a simple script to track changes of websites and get notified via mail on change with configurable scope of adresses per website. All mails contain a unified diff from old content to new content so minor changes produce only few lines of text even on large sites.

Note: wcc relies on native diff command to produce the unified diff shown in mails - plans are to remove this dependency by using something like this later...

Implemented in Ruby, tested with Ruby 1.8.7. The main file is 'wcc.rb'.

Usage

The web-change-checker ruby script can be either invoked by hand or automatically via cron on a server environment since it contains a shebang line for '/usr/bin/ruby'.

For using wcc you need to specify some options:

  • either via the command line (see wcc.rb -h)
  • or in a configuration file in YAML format

The location of the configuration file (usually called 'conf.yml' or something like this) can itself be given on command line as last argument. Each option has an hard-coded default (e.g. the configuration file name is assumed to be './conf.yml'). Command line options overwrite configuration file entries.

The core option is the From: mail address and the SMTP configuration for sending emails. It is highly encouraged to use the configuration file for all rare changing things (even because you have to specify the list of tracked sites there anyways).

An example crontab entry that runs wcc every 10 minutes might look like this:

*/10 *  * * *   root    cd /path/to/wcc;./wcc.rb

By default wcc only outputs ERROR messages to avoid your cron daemon spammin' around. It is recommended to place 'wcc.rb' and 'conf.yml' within an separate directory and use cd in cron entry.

Setup

First you need to install ruby (preferably version 1.8.7) and rubygems since wcc depends on some gems. Install the dependencies:

sudo gem install htmlentities

(If you use rvm you should omit the 'sudo'.)

Old Implementations

  • Bash - has been abandoned, production usage is discouraged!
  • Python - has been abandoned

wcc's People

Contributors

jgraichen avatar posativ avatar

Watchers

 avatar Christian Nicolai avatar 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.