Published
- 1 min read
Check if your website links are broken with LinkChecker
LinkChecker
Okay let’s make it quick. If you are looking for:
- a command line tool
- check and search for broken links on (most probably your) website
- don’t want to install anything except docker
Okay then I have something for you: LinkChecker (GitHub).
docker run --rm -it -u $(id -u):$(id -g) ghcr.io/linkchecker/linkchecker:latest --no-status -o text -v https://example.com
--no-status
removes some python print outs regarding number of running threads-v verbose
otherwise working links are not printed-o text
is the default option but I want to highlight that there is more.html
for example which is pretty handy as report dropping out from a pipeline. Ordot
which was new to me and plays together with graphviz which can draw graphs.
Might be interesting for you:
--check-extern
Self explanatory is it? Without this option it does not request anything else than the given hostname.--no-warning
To concentrate on errors.
Many more possibilities can be found in the command line reference. But should this article should be enough to give you a jump start.
Best
Sebastian