Monday, September 8, 2008

C#: The Web Page Link Audit Tool

C#: The Web Page Link Audit Tool

Okay, first try is ready for your amusement or use. You can read all about it here.

You can use this program to examine web pages for broken links. You enter a web page from the File menu, and it goes through the web page, testing every link for whether it is broken or working. If a link goes to a web page at the same directory level as the first page you entered, this tool recursively descends, checking all of the links on those pages. Links that are to pages that aren't HTML (or at least, are obviously not HTML) are only checked to make sure that we can open them.

You can print out the results. I'm going to make this smarter with time.

Install it from here.

Pretty obviously, there are tools out there that do this (and a lot more). But it was nice to build something that I actually needed, while learning C#. I started work on this Saturday morning.

It's unfortunate that employers insist on engineers with two years of C#--and aren't prepared to take a couple of months for someone like me to get up to speed.

UPDATE: I've added some smarts in the File Print Links command so that you can select which category of links to print.

UPDATE 2: I've added a check box in the open web page command so that you can tell it to only audit the links in the specified web page--not to recursively examine other web pages at the same or inferior levels. Especially if you have a web page that links to your blog, it can take a very long time to recursively checks this.

No comments:

Post a Comment