Skip to main content

A small program to check the status of URLs

Project description

C.L.I.G.O.N

Introduction

C.L.I.G.O.N or Cligon is an acronym that stands for Check if Link Is Good Or Not. It is designed to check all website links inside a file. This program was written in Python 3.8.2. It will return a list of good, bad, or unknown URL statuses.

  • good urls are status code 200.
  • bad urls are status codes 400 or 404.
  • unknowns are status codes that aren't bad or good.

Usage

For prerequisites please see CONTRIBUTING.

To use Cligon, please run in a terminal of your choice:

python3 cligon.py [file name]

Or, if executable privileges are invoked in a Linux environment (chmod +x cligon):

./cligon [file name]

Ensure you make a copy of cligon.py (cp cligon.py cligon) to execute the command above.

Additionally, instructions and options can be viewed by running Cligon without any arguments.

Features

  • Colorized output: good = green, red = back, grey/white = unknown
  • Version number argument
  • Parallelism / Multi-threading (It's fast-ish)
  • Grabs HEAD only
  • URL timeout (default 2.5 milliseconds)
  • Output JSON format
  • Output only good or bad urls

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cligon-1.0.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

cligon-1.0.0-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page