Cn Url Health Checker

Check URL health status (HTTP response code, redirect chain). Detect broken links and server errors. Pure Python standard library, no API key required.

Audits

Pending

Install

openclaw skills install cn-url-health-checker

URL Health Checker

Check the health status of any URL.

Features

  • Get HTTP status code (200, 404, 500, etc.)
  • Follow redirect chains
  • Detect server errors
  • Report final URL after redirects
  • Pure Python, no external dependencies

HTTP Status Codes

  • 200: OK (working)
  • 301/302: Redirect (may need attention)
  • 404: Not Found (broken link)
  • 500: Server Error (problem on server side)
  • Other codes: Various issues

Usage

python3 scripts/url_health.py --url https://example.com

Example Output

{
  "url": "https://example.com",
  "status": 200,
  "final_url": "https://example.com",
  "redirects": [],
  "error": null
}

Example (Broken Link)

{
  "url": "https://example.com/nonexistent",
  "status": 404,
  "error": "HTTP Error 404: Not Found"
}

Use Cases

  • Check if your website pages are accessible
  • Find broken links in your content
  • Monitor external resource availability