I need a simple CGI script that will monitor the activity of a certain online directory. The directory is accessible with a simple web scraping script and is not password protected.
The activity I want to monitor is as follows:
1) When a link position changes. (links are numbered so it is a simple matter to determine changes.)
2) When a new link is added.
Users can sign up to be notified when one of these events occurs. They will then be sent an email with the details. They should only be sent one email for each event so in the case of #2 above all new links should be in one email. (the directory only changes once a week)
In the case of #1 above they will provide a link # which can then be associated with a link to facilitate the tracking.
The script will run every night via a cron event.
I will need to be able to add promotional text to the email however I can do this at the CGI file level if that makes it easier. (ie: I don't need an admin script)