A simple Rust program for checking for dead links. Inspired by linkchecker.
GPL v2 or later license.
This project must be run with Rust nightly, due to html5ever depending on it.
$ 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.