Skip to content

IcemanEtika/deadlinkz

Repository files navigation

deadlinkz

Python tool that checks for dead urls in a txt or html file

Features

  • Good links will appear green, bad will appear red, and unknown will appear grey
  • Supports windows and linux style arguments (e.g, --version and -v both work for version)
  • Supports parallelization via the use of threads
  • Gets only request headers for optimization

Run Instructions

Make sure that you have a txt or html file in the folder containing deadlinkz before you try checking for files.

To run open cmd in root of the repo, and type deadlinkz.py followed by one of the supported arguments:

  • -a or --all filename.extension to check all URLs in file
  • -g or --good filename.extension to check only good URLs in file
  • -b or --bad filename.extension to check only bad URLs in file
  • -i or --ignore filename.extension ignored_urls.extension to ignore urls when checking
  • -t or --telescope to check for valid telescope links
  • -v or --version
  • -h or --help

If you installed it by using pip install deadlinkz, type deadlinkz instead of deadlinkz.py.

Error Codes

An error code of 0 means that the program functioned as correctly, 1 can appear when checking for all files and means that a broken/invalid URL was found in the file, and 2 means that the specified file could not be found.

To get the error code after the program has functioned, you can use:

echo %ERRORLEVEL%

after execution finishes.

Please note that index.txt is for test purposes only and you can modify/remove the file if you want to

About

Python tool that checks for dead urls in a file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages