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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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