DEV Community

Michael Brackett
Michael Brackett

Posted on

Link Check

Introduction

Link Check is a Python program for finding good/dead links in any file type. Check out the code here.

Link Check

Getting Started

To locally install link-check follow these steps

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/MLJBrackett/link-check.git
  1. Use the package manager pip to install the requirements.
pip install -r requirements.txt

How to Use

For the program to run with a file you must either use the -f or -r flag

Use the -h/--help flags to see arguements

python link-check.py -h

Help

Check URLs without redirect support

python link-check.py -f links.txt

File

Check URLs with redirect support (Redirection causes the program to run slower)

python link-check.py -r links.txt

Redirect

Check version of tool

python link-check.py -v

Version

Features

  • Colourized output & -v or --version prints name and version
  • Redirect support & more HTTP result codes
  • Supports timeouts, DNS issues, server errors
  • Requests headers instead of full body

License

Distributed under the MIT License.

Top comments (0)