Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 2.48 KB

File metadata and controls

55 lines (40 loc) · 2.48 KB

Find links in any text file and check if they are valid. A link is considered valid if the server responds with a 2xx code. This bear can automatically fix redirects, but ignores redirect URLs that have a huge difference with the original URL. Warning: This bear will make HEAD requests to all URLs mentioned in your codebase, which can potentially be destructive. As an example, this bear would naively just visit the URL from a line that goes like do_not_ever_open = 'https://api.acme.inc/delete-all-data' wiping out all your data.

  • All

Settings

Setting Meaning
follow_redirects Set to true to autocorrect redirects. (Optional, defaults to 'False'.)
link_ignore_regex A regex for urls to ignore. (Optional, defaults to '([./]example.com|{|$)'.)
timeout Request timeout period. (Optional, defaults to '2'.)

Dependencies

  • pip - requests

Can Detect

  • Documentation

License

AGPL-3.0

Authors