據 AlphaMoat 統計,截至 2026-09,Chrome Automation 累計下載 1,585 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 4,714 位,在「開發程式設計」分類(577 個)中排名第 555 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 36 | 1365 | 1 | - |
| SkillHub ↗ | 164 | 1585 | 1 | — |
各平台的計數口徑不同,統計時間不一致。
該技能說明網頁截圖、表單填寫和登入流程的自動化方法,並包含規避反爬蟲檢測的用法。技能卡提示隱蔽自動化可能違反網站條款,登入資訊可能洩露,自動提交也可能改變帳戶或網站狀態。僅自動化有權操作的網站和帳戶,使用測試帳戶並逐項審查提交動作;安裝和執行瀏覽器時應使用隔離環境,避免無沙箱執行。
資料釋出於 2026-10-27
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 1585 | — | 1 |
| 2026-08 | 1312 | +12.4% | 1 |
| 2026-07 | 1167 | — | 1 |
| 2026-05 | 833 | — | 1 |
| 2026-03 | 463 | — | 1 |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
---
name: chrome-automation
description: Linux服务器Chrome浏览器自动化方案。支持2K高清截图、表单填写、自动登录、绕过反爬虫检测。适用于B站、YouTube等网站自动化操作。
metadata:
openclaw:
requires:
bins: ["google-chrome", "python3"]
install:
- id: google-chrome
kind: shell command: |
# 下载并安装Google Chrome
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
sudo apt update && sudo apt install -y /tmp/chrome.deb xvfb
label: Install Google Chrome
- id: playwright-env
kind: shell
command: |
# 创建Python虚拟环境并安装Playwright
sudo apt install -y python3.11-venv
python3 -m venv ~/.playwright-env
source ~/.playwright-env/bin/activate
pip install playwright
playwright install chromium
label: Setup Playwright Environment
---
# Chrome 浏览器自动化
服务器环境下的Chrome浏览器自动化方案,支持2K高清截图和复杂交互操作。
## 🚀 快速开始
### 方案1:Chrome 无头模式(简单截图)
```bash
# 2K高清截图(推荐默认)
google-chrome --headless=new --no-sandbox --disable-gpu \
--window-size=1920,1080 --force-device-scale-factor=2 \
--screenshot=/home/Kano/.openclaw/workspace/screenshot.png \
https://www.bilibili.com
```
**参数说明:**
| 参数 | 作用 |
|------|------|
| `--headless=new` | 新版无头模式 |
| `--window-size=1920,1080` | 窗口分辨率 |
| `--force-device-scale-factor=2` | 2倍缩放(2K清晰度)|
| `--no-sandbox` | 跳过沙箱(服务器必需)|
| `--disable-gpu` | 禁用GPU(服务器必需)|
---
### 方案2:Playwright + Stealth(高级自动化)
**适用于:** 填表、登录、发帖、绕过反爬虫检测
```bash
# Stealth模式截图
python3 ~/.openclaw/workspace/skills/chrome-automation/scripts/playwright_stealth.py <URL>
# 指定输出路径
python3 ~/.openclaw/workspace/skills/chrome-automation/scripts/playwright_stealth.py <URL> -o <输出路径>
```
**Python调用:**
```python
import sys
sys.path.insert(0, '/home/Kano/.playwright-env/lib/python3.11/site-packages')
sys.path.insert(0, '/home/Kano/.openclaw/workspace/skills/chrome-automation/scripts')
from playwright_stealth import screenshot_with_stealth, auto_fill_form
# 截图(自动绕过反爬虫)
screenshot_with_stealth('https://bilibili.com')
# 自动填表登录
auto_fill_form('https://login.example.com', {
'#username': '用户名',
'#password': '密码'
}, submit_selector='button[type=submit]')
```
---
## 📊 方案对比
| 特性 | Chrome无头 | Playwright |
|------|-----------|------------|
| **启动速度** | ⚡ 最快 | 🚀 快 |
| **截图质量** | ✅ 2K高清 | ✅ 2K高清 |
| **绕过反爬虫** | ⚠️ 容易被检测 | ✅ Stealth模式 |
| **填表/登录** | ❌ 不支持 | ✅ 完美支持 |
| **资源占用** | 低 | 中 |
| **推荐场景** | 简单截图 | 复杂自动化 |
---
## 🔧 常用命令
```bash
# ========== 基础截图 ==========
# 默认分辨率
google-chrome --headless=new --no-sandbox --disable-gpu \
--screenshot=output.png https://example.com
# 2K高清(推荐)
google-chrome --headless=new --no-sandbox --disable-gpu \
--window-size=1920,1080 --force-device-scale-factor=2 \
--screenshot=output.png https://example.com
# 全页面截图
google-chrome --headless=new --no-sandbox --disable-gpu \
--window-size=1920,1080 --hide-scrollbars \
--screenshot=output.png https://example.com
# ========== Playwright ==========
# Stealth截图
python3 ~/.openclaw/workspace/skills/chrome-automation/scripts/playwright_stealth.py <URL>
# 自定义输出
python3 ~/.openclaw/workspace/skills/chrome-automation/scripts/playwright_stealth.py <URL> -o <路径>
```
---
## 🛠️ 环境信息
| 组件 | 版本/路径 |
|------|----------|
| Google Chrome | `/usr/bin/google-chrome` (v145+) |
| Playwright | `~/.playwright-env/` (v1.58.0) |
| Python虚拟环境 | `~/.playwright-env/` |
| Stealth脚本 | `scripts/playwright_stealth.py` |
---
## ⚠️ 注意事项
1. **每次运行都是新会话**,不会保留登录状态
2. **截图默认保存到** `/home/Kano/.openclaw/workspace/`
3. **B站等网站可能触发验证码**,需要人工处理或使用已登录的Cookie
---
## 🔗 相关文件
- Stealth脚本:`scripts/playwright_stealth.py`
- 测试脚本:`scripts/test_playwright.py`
用 gh 命令列工具檢視 GitHub 上的 PR 檢查、工作流執行與 API 查詢的技能。
聚合 16 個搜尋引擎、無需 API Key 的檢索技能。
用命令列直接列出、配置、授權並呼叫 MCP 服務與工具。
生成有效的 Mermaid 圖表,如流程圖、時序圖、思維導圖、ER 圖、使用者旅程等。
用受管 OAuth 訪問 YouTube Data API,檢索影片並管理頻道內容。
透過受管的 OAuth 連線訪問 GitHub REST API。
覆蓋規劃、實現、驗證與測試的編碼工作流技能。
整理 Docker 常用命令與容器工作流的技能。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。