Skip to main content

A tool to find broken links (404s) and oversized pages in websites

Project description

404 Finder

A Python tool to crawl websites and find broken links (404s) and oversized pages.

Installation

pip install 404-finder

Usage

404-finder example.com [options]

Options

  • --max-size BYTES: Maximum allowed size in bytes for any page
  • --workers N: Number of parallel workers (default: 10)
  • --max-depth N: Maximum depth to crawl (default: no limit)
  • --verbose: Enable verbose logging

Example

# Check for broken links on example.com
404-finder example.com

# Check for broken links and pages larger than 1MB
404-finder example.com --max-size 1000000

# Crawl with 20 parallel workers and verbose logging
404-finder example.com --workers 20 --verbose

Output

The tool generates a JSONL file named result_domain.jsonl containing details about each URL visited, including:

  • URL
  • Status code
  • Page size
  • Referrer (the page that linked to this URL)

Features

  • Parallel crawling with configurable number of workers
  • Finds broken links (HTTP status codes 4xx and 5xx)
  • Checks page sizes against a configurable limit
  • Follows redirects while staying within the same domain
  • Handles both internal and external links
  • Generates detailed JSONL reports

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

find_404-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

find_404-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file find_404-0.1.0.tar.gz.

File metadata

  • Download URL: find_404-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for find_404-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0a5f7bac3043a67c23f29d9783c36c8ba4f139a874b3e609b8086e1cbe3cea96
MD5 9edfed22e4384cf83d95622f9d1f28fa
BLAKE2b-256 efddb40d97c99fccb8aea7415a5ca04d95ada432e799aa3c64184751639dc218

See more details on using hashes here.

File details

Details for the file find_404-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: find_404-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for find_404-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be5d8c2fc1109eaee57e6f843e298192ca182ac38f698e50ba4458030e2b3e2f
MD5 abf34c17defd45fc757aab81715426b3
BLAKE2b-256 fc4c2bd4318e91ef3a81a57a13ec6cfb063c9d188bc0559ef7695e75d3cfaa33

See more details on using hashes here.

Supported by

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