User avatar
Oblomov @oblomov@sociale.network
1y
is there a simple tool to which I can pass a web page and it'll let me know if all the links in it are valid?

(it's easier than checking for typos in the links myself when there's several)

EDIT: thanks
@jones_@kolektiva.social for suggesting linkchecker, which happens to be distributed by Debian too
2
1
0
0
User avatar
Océane @oceane@peculiar.florist
1y
@oblomov From the top of my head I'd say something something
curl | awk 'exp ~ /^https/ {
    curl > /tmp/test.html
    for i in 301 302 303; do
        grep $i /tmp/test.html && \
        echo '$0 - $i' >> test-results.txt;
    done }'
1
0
0
0
1