Check and fix URLs in text files
Project description
Parses text files for HTTP URLs and checks if they are still valid. Install with
pip install deadlink
and use as
deadlink check README.md # or multiple files/directories
# or deadlink c README.md
To explicitly allow or ignore certain URLs, use
deadlink check README.md -a http: -i stackoverflow.com github
This only considers URLs containing http:
and not containing stackoverflow.com
or
github
. You can also place allow and ignore lists in the config file
~/.config/deadlink/config.toml
, e.g.,
allow_urls = [
"https:"
]
ignore_urls = [
"stackoverflow.com",
"math.stackexchange.com",
"discord.gg",
"doi.org"
]
igonore_files = [
".svg"
]
See
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
deadlink-0.5.0-py3-none-any.whl
(10.1 kB
view details)
File details
Details for the file deadlink-0.5.0.tar.gz
.
File metadata
- Download URL: deadlink-0.5.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0fb4855994997b323f684e9022c2bef68980852ab1c4374ea0c4e508dd75e7d |
|
MD5 | d9df7f15c839c3984ef6556c49a8e2ec |
|
BLAKE2b-256 | f141a12c01285b35a33b6343e2ccc20be00206bbf94e28eed26889e81478b01a |
File details
Details for the file deadlink-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: deadlink-0.5.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1052ed638f2f1e9a2dbf970d543c6ac66bacd2d2741f86bf8142ec15e60327f0 |
|
MD5 | 3e41d4e795d9455233538883d0be6950 |
|
BLAKE2b-256 | 4fcabc9a87910fc9924e5743d4e5e86b2485b3ae1acd24608bb45bc76e627bf5 |