Skip to content

api health check #12

Description

@ukrainets

Add logic to check if the API links return 200

  • Config flag api_health_check: false in config.json / CONFIG_DEFAULTS
  • New function check_api_health() in api_scanner.py — fires concurrent HEAD requests using the existing api_semaphore
  • Fires before the main scan in main.py, prints a ⚠️ line per bad URL or a ✅ all-clear, then the scan proceeds regardless
  • Informational only — a failing health check does not skip the company; scan_api still handles errors on its own

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions