A fast broken link checker based on SEOmatic sitemap* for Craft CMS projects.
check-links: Check links to see if they are broken.fetch-links: Returns all URLs based on the provided sitemap.
go run main.go fetch-links [URL]For example: go run main.go fetch-links https://fredmansky.com/sitemap.xml
go run main.go check-links [URL]For example: go run main.go check-links https://fredmansky.com/sitemap.xml -l 100
📌 What does -l (--rate-limit) do?
- Limits the number of requests per second (LPS).
- Example:
-l 100means 100 links are checked per second. - Default:
200
docker run fredmansky/go-link-checker fetch-links [URL]For example: docker run fredmansky/go-link-checker fetch-links https://fredmansky.com/sitemap.xml
docker run fredmansky/go-link-checker check-links [URL]For example: docker run fredmansky/go-link-checker check-links https://fredmansky.com/sitemap.xml
- Commit and push all changes to gh.
- Login to Docker cli:
docker login - Build docker image:
docker build -t go-link-checker . - Add new docker tag:
docker tag go-link-checker fredmansky/go-link-checker:latest - Push to docker hub:
docker push fredmansky/go-link-checker:latest