Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
/ site-change-notify Public archive

Notifies user if any tracked sites have changed

Notifications You must be signed in to change notification settings

kjmcnee/site-change-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This script notifies the user of changes to tracked web sites. This is particularly useful for sites which don't have RSS feeds.

This is done by hashing the content of the page and comparing it to what the hash was the last time the site was checked. If the hashes differ then the site has changed.

Note: the hash function being used is MD5. Since this script is just using the hash to identify changes, MD5 is good enough. <sarcasm>If people start maliciously crafting their site to trick this script into thinking the site has not changed, then I'll switch it to SHA-512 or something.</sarcasm>

Sample usage:

# Display options:
$ site-change-notify --help

# Say we want to track changes to example.com. To tell the script to track it:
$ site-change-notify --add example.com
Tracking site: example.com

# If example.com hasn't changed...
$ site-change-notify
# ...prints nothing

# If we wait a bit and example.com changes...
$ site-change-notify
Site changed: example.com

# If we don't want to track changes to example.com, let's remove it:
$ site-change-notify --remove example.com

About

Notifies user if any tracked sites have changed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages