Skip to main content

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 <<

 

img

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

md-url-check-0.1.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

md_url_check-0.1.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for md-url-check-0.1.4.tar.gz
Algorithm Hash digest
SHA256 69e0ce73038f0e82cac5cffd3a3339a94621547d7c6d2480a9e399a3ae6e7f5f
MD5 64912f7676e6dc7744b31b9f2fd69a72
BLAKE2b-256 abc1e35348bece9d88099837e2a5f909a508136e0828a1ba17e790ff9e78e9fb

See more details on using hashes here.

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

Hashes for md_url_check-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d409f54d5d3b11eb20f8a9a6ecf5b2c90f5a3fec061a4e4f4017ddb8d6eb8d7
MD5 3302b115194392ddb4d5f37f535b1df1
BLAKE2b-256 20c5e70058039e20e970c2fab948c3a28c00c8cafec68ed7be26d75dd98fe304

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