A simple Rust program for checking for dead links. Inspired by linkchecker.
$ cargo build
$ cargo run -- http://www.wilfred.me.uk
ID-relative links are treated naively. If there's a link #foo
on a page /bar
,
we end up querying http://example.com/#foo
instead of
http://example.com/bar#foo
. We should either ignore ID-relative
links or check for a matching ID on the same page. (We could even do
the same for external links, verifying that the ID still exists.)
We don't check for broken links in <img>
tags.