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

404_finder-0.1.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

404_finder-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file 404_finder-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for 404_finder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae62856cd700d48a9289a74ef5b2915328c29f2cd62e661aa2ec25499582c4b4
MD5 03c4035612bdbaf78bddfc990a089abd
BLAKE2b-256 7d8b102de0d1f5b4a67c47a9650bdfe8d47bbb14926e2a40b7bfbd360477eab2

See more details on using hashes here.

File details

Details for the file 404_finder-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for 404_finder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bc80b59564ab16aeb89db154d7b226b18fe0a7402c5e4234966b31d8e83fd19
MD5 b25b881c6794a986993ffbacb48c6cd3
BLAKE2b-256 7d304b32f1c5de4c6ac1f3883203df2daf670d1b39dcd5d77c41545c30718266

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