Skip to content

flangofas/broken-link-checker

Repository files navigation

Broken Links Tool for QA purposes

pipeline status coverage report

Setup

$ docker build -t blt-centos:latest .

Development

# Run container and keep it alive to apply changes
$ docker run --rm -it --entrypoint bash --mount type=bind,source="$(pwd)",target=/app blt-centos:latest 
# Within container
$ bin/broken-links-tool https://example.com

Tests

$ docker run --rm -it --entrypoint bash --mount type=bind,source="$(pwd)",target=/app blt-centos:latest 
$ bin/composer test

Create container and Run

$ docker run --rm blt-centos:latest https://example.com

Flags

$ docker run --rm blt-centos:latest https://example.com --enable-js
# For JavaScript generated pages, defaults to false

$ docker run --rm blt-centos:latest https://example.com --invalid-urls
# Print invalid URLs only

$ docker run --rm blt-centos:latest https://example.com --valid-urls
# Print valid URLs only

# By default prints all URLs 

Uncrawlable HTTP Code

Code: 1000 Reason: Failed to crawl

Usually, it is seen for sites not accepting web crawler or require user authorization

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors