https://github.com/markwinter/find-dead-links
Find dead links in your git repo
https://github.com/markwinter/find-dead-links
Last synced: about 1 year ago
JSON representation
Find dead links in your git repo
- Host: GitHub
- URL: https://github.com/markwinter/find-dead-links
- Owner: markwinter
- License: mit
- Created: 2021-03-15T14:27:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T11:46:08.000Z (over 5 years ago)
- Last Synced: 2025-02-10T14:43:18.306Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Find Dead Links
This is a quick tool to find dead links in `.md` files in a git repo
It requires Python3.7
#### Usage
1. Clone this repo
```BASH
$ git clone https://github.com/markwinter/find-dead-links.git
$ cd find-dead-links
```
2. Install the required python modules
```BASH
$ pip3 install -r requirements.txt
```
3. Edit the `MD_EXTENSION` if necessary (Default: `.md`)
4. Run the script with path to your git repo
```BASH
$ 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
```
#### Notes
1. HTTP links are requested with python requests
2. Other links are checked by trying to find the file locally
3. `HTTP 459` This error is Github rate limiting