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.

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

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

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay