https://github.com/victoriadrake/slow-link-checker
Single thread Python link checker
https://github.com/victoriadrake/slow-link-checker
Last synced: 2 months ago
JSON representation
Single thread Python link checker
- Host: GitHub
- URL: https://github.com/victoriadrake/slow-link-checker
- Owner: victoriadrake
- Created: 2020-01-13T15:16:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T02:51:10.000Z (about 5 years ago)
- Last Synced: 2024-12-28T06:25:10.601Z (4 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slow link checker is slow
Single-thread, scripty Python crawls a website and prints a YAML report of broken links. This program is mostly for educational purposes. There's a [multithreaded version here](https://github.com/victoriadrake/hydra-link-checker).
## Usage
Run in a terminal:
```sh
python find_broken.py [URL]
```Ensure `URL` is an absolute url including schema, i.e. `https://example.com`.
The report will be [YAML](https://yaml.org/) formatted. To save the output to a file, run:
```sh
python find_broken.py [URL] > [PATH/TO/FILE.yaml]
```You can add the current date to the filename using a command substitution, such as:
```sh
python find_broken.py [URL] > /path/to/$(date '+%Y_%m_%d')_report.yaml
```To see how long the program takes to check your site, add `time`:
```sh
time python find_broken.py [URL]
```