Simple CLI tool to check URL health in markdown files.
Project description
Markdown URL Checker
>> Simple CLI tool to check URL health in markdown files <<
This CLI tool traverses down a markdown file, extracts all the valid URLs, and checks whether they're accessible or not. In case it encounters a broken link, it raises an error. Internally, this is optimized for larger markdown files and tested for huge markdown files with thousands of links.
Installation
Install the CLI using pip:
pip install md-url-checker
Usage
-
To check the URLs in a single markdown file, run:
md-url-check -f file.md
-
To check the URLs in multiple markdown files, run:
echo 'file1.md file2.md' | xargs -n 1 md-url-check -f
-
To check the URLs in multiple files in a folder, run:
find . -name '*.md' | xargs -n 1 --no-run-if-empty md-url-check -f
-
Suppress intermediate output:
md-url-check -f file.md -s
-
Provide the number of threads to be used while making the requests:
md-url-check -f file.md -s -t 32
This uses 32 interleaving threads to make the requests concurrently. Default is 8.
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
Built Distribution
File details
Details for the file md-url-check-0.1.4.tar.gz
.
File metadata
- Download URL: md-url-check-0.1.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.11.0-27-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69e0ce73038f0e82cac5cffd3a3339a94621547d7c6d2480a9e399a3ae6e7f5f |
|
MD5 | 64912f7676e6dc7744b31b9f2fd69a72 |
|
BLAKE2b-256 | abc1e35348bece9d88099837e2a5f909a508136e0828a1ba17e790ff9e78e9fb |
File details
Details for the file md_url_check-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: md_url_check-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.7 Linux/5.11.0-27-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d409f54d5d3b11eb20f8a9a6ecf5b2c90f5a3fec061a4e4f4017ddb8d6eb8d7 |
|
MD5 | 3302b115194392ddb4d5f37f535b1df1 |
|
BLAKE2b-256 | 20c5e70058039e20e970c2fab948c3a28c00c8cafec68ed7be26d75dd98fe304 |