DEV Community

Michael Brackett
Michael Brackett

Posted on

2 1

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.

👋 While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay