January 2004
Intermediate to advanced
368 pages
7h 25m
English
Sometimes great inspiration comes from seeing an existing business and saying to yourself, "That doesn't seem too hard." The task of tracking changes on a website is a surprisingly simple way of collecting such inspirational material, as shown in this script, changetrack. This script does have one interesting nuance: When it detects changes to the site, it emails the new web page, rather than just reporting it on the command line.
#!/bin/sh # changetrack - Tracks a given URL and, if it's changed since the last # visit, emails the new page to the specified address. sitearchive="/usr/tmp/changetrack" # change as desired sendmail="/usr/sbin/sendmail" # might need to be tweaked! fromaddr="webscraper@intuitive.com" ...
Read now
Unlock full access