Skip to main content

A super simple Python utility to check for dead links in a website

Project description

PyLich

A super simple Python utility to check for dead links in a website.

Installation

Clone the repository and run the following command:

pip install .

Usage

Simply provide the URL of the sitemap and pylich will crawl through links in the pages and check their status.

from pylich import LinkChecker
checker = LinkChecker("https://www.example.com/sitemap.xml", verbose=True)
urls = checker.get_sitemap_urls()
broken_links = checker.check_links(urls)
checker.print_dead_links()

Contributing

Pull requests are welcome.

Package and dependency management is done using Poetry. To install the dependencies, run:

poetry install

To run the tests, run:

pytest

Pre-commit hooks are available:

pre-commit install

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

pylich-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

pylich-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pylich-0.1.0.tar.gz.

File metadata

  • Download URL: pylich-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for pylich-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52690bb74faef64cd596a189f52caa368e4c6d39aa010436c9b2f29f03cedfaa
MD5 64037b26aebd0ea8ff3e76d632b69130
BLAKE2b-256 b867f16409673e84f15bd46b5089b0977d51ab374b248a59465885203d08dda2

See more details on using hashes here.

File details

Details for the file pylich-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pylich-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for pylich-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 471fd649cc7b05d8c58668575c49f0f36e7e5ea77a5aebf19eb85d59b31c1417
MD5 ad2437bac4d21280a99c4a2b2df4af52
BLAKE2b-256 86565f7a4fb954e691e12d02409caf16d8407305f6435adea453053611da0c25

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