跳到正文
TakoAPI
返回技能列表

website-monitor

由 claudiodrusus 提供

Web & Frontend Development
488下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Lightweight website uptime monitor.

描述

该技能的功能

A zero-dependency Python tool for checking website availability, measuring response times, and detecting content changes. Uses only Python's standard library, so it runs anywhere Python is installed without setup. Returns exit code 1 on failure, making it scriptable.

No dependencies means it runs in any environment without a virtualenv or install step, unlike requests-based alternatives.

何时使用

  • Alerting when a production site goes down
  • Verifying a deployment didn't change page content unexpectedly
  • Checking that a status page shows "All Systems Operational"
  • Monitoring multiple sites in a single cron job
  • Piping results into jq to filter only failed checks

示例工作流

输入

User asks: check if my site is up and alert me if it's down

智能体
  1. 1

    Run python main.py https://mysite.com

  2. 2

    Capture exit code from the process

  3. 3

    If exit code is 1, trigger alert command

  4. 4

    Optionally pass --json flag and pipe to jq for structured failure details

  5. 5

    Schedule command in cron for recurring checks

输出

Exit code 0 with status 200 and response time, or exit code 1 triggering the alert pipeline

安装

clawhub install claudiodrusus/website-monitor

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接