ToolTested: Yes
Link check: catch broken, unsourced or dead links before you publish
Purpose: Before publishing a post or report, check that every link is well formed, sourced and still works
Download: urlcheck.py Runs in a clean environment, Python standard library only
Broken links are common: a missing character, a mistyped address, or a page that no longer exists. This small tool finds every link in your draft and checks each one.
Usage: run python urlcheck.py DRAFT on the command line.
To make sure every link comes from your own material, add your source files: python urlcheck.py DRAFT SOURCE.
To check that the links still open, add --online. This is the only mode that uses the network.
It reports three kinds of problems: bad format, not in source, and dead link. If everything is fine it reports a pass. If not, it exits with an error code, so you can put it in an automated check.
Limits: a page that opens is not proof that its content is right. Some sites block automated checks and may show up as dead, so open those yourself to confirm.
Our own site runs the same link check before every release.