← 返回
开发者工具 中文

Uptime Checker

Lightweight URL uptime checker and response time monitor. Check if websites and APIs are up, measure response times, track history, and detect SSL issues. Us...
轻量级 URL 正常运行检测与响应时间监控工具。检查网站和 API 状态,测量响应时间,记录历史并检测 SSL 问题。
johnnywang2001
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 484
下载
💾 6
安装
1
版本
#latest

概述

Uptime Checker

Zero-dependency URL uptime checker with response time monitoring, history tracking, and multi-URL support.

Quick Start

# Check a single URL
python3 scripts/uptime_check.py https://example.com

# Check multiple URLs
python3 scripts/uptime_check.py https://api.example.com https://example.com https://status.example.com

# JSON output for scripting
python3 scripts/uptime_check.py https://example.com --format json

# Check with custom expected status
python3 scripts/uptime_check.py https://example.com/old-page --expected-status 301

# Load URLs from file
python3 scripts/uptime_check.py --urls-file urls.txt

# Save results and view history
python3 scripts/uptime_check.py https://example.com --save --history-file checks.json
python3 scripts/uptime_check.py --history --history-file checks.json

# Skip SSL verification (self-signed certs)
python3 scripts/uptime_check.py https://internal.example.com --no-verify-ssl

# Custom timeout and method
python3 scripts/uptime_check.py https://example.com --timeout 5 --method HEAD

# Add custom headers (auth, etc.)
python3 scripts/uptime_check.py https://api.example.com --header "Authorization:Bearer token123"

Features

  • Check single or multiple URLs in one command
  • Response time measurement in milliseconds
  • SSL certificate validation
  • Redirect detection and following
  • History tracking with uptime percentage summaries
  • Configurable expected HTTP status codes
  • Custom headers, methods, and timeouts
  • JSON and text output formats
  • Exit code 1 if any endpoint is down (for scripting/cron)
  • No external dependencies — pure Python stdlib

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,902
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,937
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,755