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.

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

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

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

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay