capture-website

TotalClaw 作者 totalclaw v1.0.0

从命令行捕获网站屏幕截图。当用户想要截取任何 URL(Twitter、新闻网站、网页)的屏幕截图并通过 Discord/Feishu 发送时使用。需要安装 capture-website-cli (npm install -g capture-website-cli)。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~silencezx007-capture-website
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~silencezx007-capture-website/file -o silencezx007-capture-website.md
# Capture Website Screenshot

Take screenshots of any website and send to user.

## Quick Start

```bash
capture-website <URL> --output=/home/aaronz/.openclaw/workspace/screenshot.png
```

## Common Options

| Option | 说明 | 示例 |
|--------|------|------|
| `--output` | 输出文件路径 | `--output=/tmp/screenshot.png` |
| `--full-page` | 截取完整页面 | `--full-page` |
| `--width` | 页面宽度 | `--width=1280` |
| `--height` | 页面高度 | `--height=800` |
| `--type` | 图片格式 | `--type=png` 或 `--type=jpeg` |
| `--delay` | 加载后等待秒数 | `--delay=2` |
| `--wait-for-element` | 等待元素出现 | `--wait-for-element=.content` |
| `--dark-mode` | 暗色模式 | `--dark-mode` |
| `--emulate-device` | 模拟设备 | `--emulate-device="iPhone X"` |

## Workflow

1. Run capture-website command with URL
2. Save to workspace folder: `/home/aaronz/.openclaw/workspace/`
3. Send via message tool with filePath

## Example

```bash
capture-website https://x.com/elonmusk/status/2026052687423562228 \
  --output=/home/aaronz/.openclaw/workspace/tweet.png \
  --width=1280 \
  --height=800
```

Then send the file to user via Discord.

## Notes

- Requires: `npm install -g capture-website-cli`
- Default timeout: 60 seconds
- If screenshot fails, try adding `--delay=2` for slow-loading pages

---

## 中文说明

# 网站截图

对任意网站进行截图并发送给用户。

## 快速开始

```bash
capture-website <URL> --output=/home/aaronz/.openclaw/workspace/screenshot.png
```

## 常用选项

| 选项 | 说明 | 示例 |
|--------|------|------|
| `--output` | 输出文件路径 | `--output=/tmp/screenshot.png` |
| `--full-page` | 截取完整页面 | `--full-page` |
| `--width` | 页面宽度 | `--width=1280` |
| `--height` | 页面高度 | `--height=800` |
| `--type` | 图片格式 | `--type=png` 或 `--type=jpeg` |
| `--delay` | 加载后等待秒数 | `--delay=2` |
| `--wait-for-element` | 等待元素出现 | `--wait-for-element=.content` |
| `--dark-mode` | 暗色模式 | `--dark-mode` |
| `--emulate-device` | 模拟设备 | `--emulate-device="iPhone X"` |

## 工作流程

1. 使用 URL 运行 capture-website 命令
2. 保存到工作区文件夹:`/home/aaronz/.openclaw/workspace/`
3. 通过 message 工具用 filePath 发送

## 示例

```bash
capture-website https://x.com/elonmusk/status/2026052687423562228 \
  --output=/home/aaronz/.openclaw/workspace/tweet.png \
  --width=1280 \
  --height=800
```

然后通过 Discord 将文件发送给用户。

## 注意事项

- 依赖:`npm install -g capture-website-cli`
- 默认超时:60 秒
- 如果截图失败,对于加载缓慢的页面可尝试添加 `--delay=2`