Skip to main content

Check and fix URLs in text files

Project description


PyPi Version PyPI pyversions GitHub stars Downloads

gh-actions codecov LGTM Code style: black

Parses text files for HTTP URLs and checks if they are still valid. Install with

pip install deadlink

and use as

deadlink check   # or multiple files/directories
# or deadlink c

To explicitly allow or ignore certain URLs, use

deadlink check -a http: -i github

This only considers URLs containing http: and not containing or github. You can also place allow and ignore lists in the config file ~/.config/deadlink/config.toml, e.g.,

allow_urls = [
ignore_urls = [
igonore_files = [


deadlink check -h

for all options. Use

deadlink replace-redirects paths-or-files
# or deadlink rr paths-or-files

to replace redirects in the given files. The same filters as for deadlink check apply.

Example output:

Similar projects:

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

deadlink-0.5.0.tar.gz (13.3 kB view hashes)

Uploaded source

Built Distribution

deadlink-0.5.0-py3-none-any.whl (10.1 kB view hashes)

Uploaded py3

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