parent
07a5acceaf
commit
c6361ea488
@ -0,0 +1,14 @@ |
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
||||
Version 2, December 2004 |
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> |
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified |
||||
copies of this license document, and changing it is allowed as long |
||||
as the name is changed. |
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO. |
||||
|
@ -0,0 +1,44 @@ |
||||
# DeadLinks |
||||
|
||||
A tool for crawling and finding links to URLs which no longer exist. deadlinks |
||||
supports the HTTP(s) and gemini protocols, and is intended for periodically |
||||
checking links on personal websites and blogs. |
||||
|
||||
## Library |
||||
|
||||
The `deadlinks` package is designed to be easily embedded into a process and |
||||
have its results displayed in something like a status page. |
||||
|
||||
[See the godocs for more info.](https://godocs.io/code.betamike.com/mediocregopher/deadlinks) |
||||
|
||||
## Command-Line |
||||
|
||||
The command-line utility can be installed using `go install`: |
||||
|
||||
``` |
||||
go install code.betamike.com/mediocregopher/deadlinks/cmd/deadlinks |
||||
``` |
||||
|
||||
The `-urls` parameter is required. Given one or more URLs it will check each one |
||||
for any dead links: |
||||
|
||||
``` |
||||
deadlinks -urls 'https://mediocregopher.com,gemini://mediocregopher.com' |
||||
``` |
||||
|
||||
Any links which are dead will be output to stdout as YAML objects, each |
||||
containing the dead URL, the error encountered, and which pages link to it. |
||||
|
||||
In order to recursively crawl through links you can give one or more regex |
||||
patterns. Any URL which matches a pattern will have its links checked as well |
||||
(and if any of those link URLs match a pattern their links will be checked, and |
||||
so on): |
||||
|
||||
``` |
||||
deadlinks \ |
||||
-urls 'https://mediocregopher.com,gemini://mediocregopher.com' \ |
||||
-patterns '://mediocregopher.com' |
||||
``` |
||||
|
||||
There are further options available which affect the utility's behavior, see |
||||
`deadlinks -h` for more. |
Loading…
Reference in new issue