1) Add form that will users to enter a URL. 2) Then replace $rec{'ID'} in the SPIDER.CGI script with $in{'URL'} (form field). 3) Add regexp check codes to make sure someone typed in the correct URL format.
These are the basics...other codes would have to be added/hacked...