Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (22 loc) · 1.23 KB

readme.md

File metadata and controls

36 lines (22 loc) · 1.23 KB

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.


Check links in MARC records

Takes a public Koha report and checks each URL (856$u) to see if they resolve successfully.

Setup & Usage

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.

Notes

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.

LICENSE

ECL Version 2.0