This is a quick tool to find dead links in .md
files in a git repo
It requires Python3.7
- Clone this repo
$ git clone https://github.com/markwinter/find-dead-links.git
$ cd find-dead-links
- Install the required python modules
$ pip3 install -r requirements.txt
-
Edit the
MD_EXTENSION
if necessary (Default:.md
) -
Run the script with path to your git repo
$ python3 find_dead_links.py ../path/to/repo
[*] Finding all .md pages
[*] Found 185 pages
[*] Finding all links in pages
[*] Found 1309 links
[*] Trying links
Page: /README.md, Link: https://github.com/kubeflow/manifests/tree/master/kfserving, Status: 404
-
HTTP links are requested with python requests
-
Other links are checked by trying to find the file locally
-
HTTP 459
This error is Github rate limiting