alkeon c8778d1466 Handle links with spaces | hai 1 ano | |
---|---|---|
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
LICENSE | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
bot-in-action.gif | %!s(int64=5) %!d(string=hai) anos | |
deadseeker.py | hai 1 ano |
This was for my website on building a dead link checker when I test it. Forked from **healeycodes
Let's say I have a website and I want to find any dead links and images on this website.
$ python deadseeker.py 'https://example.com/'
> 404 - https://www.iana.org/domains/example
Now it works with offline files
$ python deadseeker.py index.html
> FileNotFound - example.html
It's that simple. The website is crawled, and all href
and src
attributes are sent a request. Errors are reported.