Skip to main content

Dead_Link_Checker

RELEASES

Dead Link Checker (Release 0.1)

DLChecker

About DLChecker

This repository is a command-line tool to find and report a dead URL status in a file. This tool can help users to check the broken link and show the list of broken links.

Features

  • Searching for the URLs in the input files
  • Checking multiple URLs by typing URL in the command line
  • Organizing links each working and broken URLs
  • Providing [Help] option to show users how to use this tool
  • Showing unknown URLs which have status code(not 200 and 400~599), error, or long loading (1.5 seconds timeout)

Optional Features

  • Starting an argument with -v/-V can be supplied to the program for current version information.
  • Printing good status[200] URLs with green colour and bad status[400,404] URLs with red colour

Getting Started

  1. Clone the repo
git clone https://github.com/sonechca/Dead_Link_Checker.git
  1. The DLChecker file in the DEAD_LINK_CHECKER folder on the command line
cd DEAD_LINK_CHECKER
  1. Install library
pip3 install requests
pip3 install coloarama
  1. DLChecker run command
python3 DLChecker.py <filename> or <URL>

Help/Usage

Users can call the help/usage box if they do not know how to use this tool.

python3 DLChecker.py (blank) or python3 DLChecker.py -h/-H

DLChecker

Library

  • Requests
    • Requests is an elegant and simple HTTP library for Python, built for human beings.
    • Requests allows you to send HTTP/1.1 requests extremely easily.
    • User can check the response status code
       >>> r = requests.get('https://httpbin.org/get')
       >>> r.status_code
       200
    

Issues

  • Colouring in CMD not work #1
  • Use the correct python way when checking for empty/non-empty lists #2
  • The current version of the tool cannot read the redirect status code(303, 308). The tool is recognizing that redirect is an error exception
  • After the install of requests. I think you should include another line reminding the user to also download: "Pip3 install colorama"

Solution

  • Adding the colorama library to fix error. I used function that contain gray color code to use for unknown URL. Colorama library does not have gray color
  • I fixed the condition code to check links list and dead_links list
  • I added the comment of installation

Metadata

Release files for Dead-Link-Checker 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Dead-Link-Checker 1.0.0
File Size Uploaded Provenance Actions
Dead-Link-Checker-1.0.0.tar.gz 5.6 kB Without provenance Details for Dead-Link-Checker-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Dead-Link-Checker 1.0.0
File Interpreter ABI Platform Actions
Dead_Link_Checker-1.0.0-py3-none-any.whl Python 3 none any Details for Dead_Link_Checker-1.0.0-py3-none-any.whl

Total release size: 13.0 kB

Security for Dead-Link-Checker 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page