DEFUNCT - SEE cca/koha_qa
This project has been included in our koha_qa tools and will no longer be updated here. Original readme below.
Takes a public Koha report and checks each URL (856$u
) to see if they resolve successfully.
Uses poetry, Python 3, and httpx. To get start ensure you have Homebrew, copy example.config.py to config.py and enter the values for your environment. To setup the app:
# if you don't have python3 & poetry already
brew install python3 poetry
# create project virtualenv
poetry install
# run it
poetry run python linkcheck.py
Logs output to console and a CSV file.
Use the included report.sql
to create a SQL report in Koha, be sure to set "Public" to "Yes" so the report JSON can be publicly accessed.
The app prints URLs with non-200 HTTP response statuses. It also catches HTTP exceptions within httpx, which can occur when a domain is unavailable.
Some websites have poor server hygiene and send successful HTTP responses with non-200 error codes. Not much we can do about that.