This is a simple program which I have written in Python to check links in my HTML pages. It tries to open connections to each and every link on a page specified by href and src attributes, and prints the status message sent by the server, enabling the webmaster to detect dead/unusable links.
Usage: python linkcheck.py http://myhost/mydir/ or python http://myhost/mydir/myfile.html/
Try it out: linkcheck.txt
Last modified: Sun Jul 29 15:08:29 IST 2007