Skip to main content

A tool to assist with finding broken links on your wagtail site.

Project description

===============
wagtail-linkchecker
===============

A tool/plugin to assist with finding broken links on your wagtail site.

Installing
==========

Install using pip::

pip install wagtail-linkchecker

It works with Wagtail 1.0 and upwards.

Using
=====

To use, firstly you will need to add ``wagtaillinkchecker`` to your ``INSTALLED_APPS`` and run the migrations.
There will now be an extra item on the settings panel of the wagtailadmin. Inside here you can enable or disable automated
scanning (See below for more detail) or conduct a scan.

Conducting a scan
-----------------
Conducting a scan will scan all of your wagtail pages, and detect all images and anchors with a ``src`` or ``href`` respectively.
Utilising the ``requests`` and ``BeautifulSoup`` libraries, requests will be made to each link to make sure an appropriate response
is received, and if no appropriate response is received, once the scan is complete, all broken links along with their status codes and
reasons will appear.

Configuration
-------------
Currently you can configure a time for the scanning script to wait between URLs in seconds with the django setting ``LINKCHECKER_DELAY``.

Automated Scanning
------------------
If you want automated scanning to work you **HAVE** to set up a cron job. The cron job will need to run the management command ``linkchecker`` at
an interval of your choosing.
The automated scans will do the same as manually conducting a scan, but instead will email the last person to edit the page with broken links/images.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-linkchecker-0.2.0.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file wagtail-linkchecker-0.2.0.tar.gz.

File metadata

File hashes

Hashes for wagtail-linkchecker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 22aa283f465a5dc2b14c4ad50f445bb6a8e54cfc7a4cc88db4c1a28ee7127ae7
MD5 7ec860d76eb72e6129368c62e6058469
BLAKE2b-256 04648958a9ac1ff163e5fb6936da53007111cdd87bad2ccf85e48826477652f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page