2019-12-01 02:25:29 +00:00
|
|
|
# linkchecker
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> Command-line client to check HTML documents and websites for broken links.
|
2019-12-01 02:25:29 +00:00
|
|
|
> More information: <https://linkchecker.github.io/linkchecker/>.
|
|
|
|
|
2023-09-10 14:21:33 +01:00
|
|
|
- Find broken links on <https://example.com/>:
|
2019-12-01 02:25:29 +00:00
|
|
|
|
|
|
|
`linkchecker {{https://example.com/}}`
|
|
|
|
|
|
|
|
- Also check URLs that point to external domains:
|
|
|
|
|
|
|
|
`linkchecker --check-extern {{https://example.com/}}`
|
|
|
|
|
2021-05-10 10:03:12 +01:00
|
|
|
- Ignore URLs that match a specific regular expression:
|
2019-12-01 02:25:29 +00:00
|
|
|
|
2021-05-10 10:03:12 +01:00
|
|
|
`linkchecker --ignore-url {{regular_expression}} {{https://example.com/}}`
|
2019-12-01 02:25:29 +00:00
|
|
|
|
|
|
|
- Output results to a CSV file:
|
|
|
|
|
|
|
|
`linkchecker --file-output {{csv}}/{{path/to/file}} {{https://example.com/}}`
|