Search docs and validate URLs found are working properly.
Project description
PYURLCHECK
Project is currently a WIP.
pyurlcheck
can be used to scan through all of a projects documents and validate any public
facing URLs are still reachable.
Why??
It's apparent when navigating code documentation online that keeping up with URLs in documentation isn't always done properly. Running into constant 404 Not Found
errors is frustrating for users that are trying to learn how to use a product or tool.
Examples
Running the tool against a single file.
▶ python cli.py examples/example1.md
examples/example1.md:8 URL Issue: https://www.ansible.com/jeff
Running the tool against a directory. All files in the directory will be executed.
▶ python cli.py examples/
examples/example2.md:6 URL Issue: https://www.ansible.com/jeff
examples/example1.md:8 URL Issue: https://www.ansible.com/fake
Alternatively,
you can replace python cli.py
with pyurlcheck
on the command line.
▶ pyurlcheck pyurlcheck/examples/
pyurlcheck/examples/example3.txt:4 URL Issue: https://www.ansible.com/jeff
pyurlcheck/examples/example2.md:7 URL Issue: https://www.ansible.com/jeff
pyurlcheck/examples/example3.md:3 URL Issue: https://www.ansible.com/jeff
pyurlcheck/examples/example4.rst:22 URL Issue: http://google.com/france
pyurlcheck/examples/example4.rst:23 URL Issue: http://google.com/japan
pyurlcheck/examples/example1.md:9 URL Issue: https://www.ansible.com/jeff
File extensions are currently not checked; therefore all files in a directory that is passed in will be validated.
Installation
pip install pyurlcheck
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
Built Distribution
File details
Details for the file pyurlcheck-0.1.2.tar.gz
.
File metadata
- Download URL: pyurlcheck-0.1.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.13.0-7620-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d27f298381f4e6187a0b9a2f7fa77ba03d58939a5b9c69ec17f2fdf94d78a81 |
|
MD5 | c99dc9aacdc2dcfc1b02a30f2641e28a |
|
BLAKE2b-256 | 9e3ffe1cdc7a8584f8be4b272f165a518a28255e72f8f3235780ebc352d2247a |
File details
Details for the file pyurlcheck-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pyurlcheck-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.13.0-7620-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9f4994dad17779f9a1bbde40a4fbbe81d066b295bd702ddbe034937c1cc7740 |
|
MD5 | e67b140cbd884df7550e114fe54e6e7b |
|
BLAKE2b-256 | bc20b8d51a33736c8ab910effd166940156cbcfb0fb9c51a070d358cc898b445 |