Check links for Markdown-based site
Linkchecker for Markdown-based static generated sites
Python Requests-based simple check of links in Markdown .md files only. I got frustrated with all the false positives and moreso the false negatives from LinkChecker.py, which is also very slow and only works with HTML. This tool is very helpful for large Markdown-based Jekyll and Hugo sites. It is very fast and simple--it's what we use to check https://www.scivision.dev
git clone https://github.com/scivision/linkchecker-markdown pip install -e linkchecker-markdown
The static site generator does NOT have to be running for these tests--it looks at the .md files directly. Assuming your webpage Markdown files have top-level directory ~/web:
python linkcheck.py ~/web/_posts
python linkcheck.py ~/web/content
--verbose options prints the URLs as they are checked.
Observe that URLs from different markdown files are interleaved, showing the asynchronous nature of this program.
Strict anti-leeching methods cause false positives with this and other link checking programs. The solution may be to use an asyncio-based web browser interface like Arsenic in this program, or simply use Go-based htmltest.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size linkcheckmd-1.0.1.tar.gz (5.1 kB)||File type Source||Python version None||Upload date||Hashes View hashes|