📦 Obscura Skill — Obscura 技能

v1.0.0

Use when scrAPIng the 网页, driving headless browser 自动化, or 运行ning E2E tests from Claude Code. Obscura is a Rust-based, drop-in headless Chrome repla...

0· 0·0 当前·0 累计
felipeoff 头像by @felipeoff (Felipe Oliveira)
0
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
安全
high confidence
This 技能 is an instruction-only 图形界面de for using the Obscura headless browser and its declared instructions, 安装s, and scope are consistent with that purpose — nothing 请求ed is disproportionate or unexplAIned.
评估建议
此技能与其声明用途一致,但在安装或使用前,你应:(1) 运行下载的二进制前,先验证上游 GitHub 仓库及发布资产(核对发布者/账户、release 标签及校验和);(2) 安装二进制时可能需 sudo,若不想影响系统全局,优先在沙箱/容器内运行;(3) 运行 `obscura serve` 会开放本地 CDP 端口,其他本地进程可访问——必要时限制网络访问;(4) “stealth” 功能可绕过基础机器人检测,但也可能被滥用——勿用于违反网站条款或法律;(5) 若计划从源码构建,确保使用可信工具链(Rust、V8 构建)并具备足够资源。如需更强保障,先检查上游项目源码与发布签名,或在隔离环境(容器或 VM)中运行二进制。...
详细分析 ▾
用途与能力
The name/description (headless browser for scrAPIng, Puppeteer/Playwright, CDP) matches the 技能.md content: 命令行工具 usage, serve/fetch/scrape commands, examples for Puppeteer/Playwright and build-from-source. The declared purpose justifies the provided commands and examples.
指令范围
The 技能.md instructs 安装ing a 系统 binary (moving to /usr/local/bin), building from source (V8 via cargo), 运行ning a CDP server (ws://127.0.0.1:9222), and using stealth mode to evade basic 机器人 检测ion. These are within scope for a headless-browser 技能, but they carry operational implications (requires sudo to 安装, builds are heavy, and 运行ning a local CDP server exposes a 列出ening port that other local processes could 访问).
安装机制
No 安装 spec in the 技能 bundle itself (instruction-only). The 安装ation instructions point to GitHub releases (github.com/.../releases/latest/下载/...), which is a standard release host and is proportionate. No 下载s from unknown or shortened URLs are used in the instructions.
凭证需求
The 技能 请求s no 环境 variables, no 凭证s, and no config paths. The 技能.md examples use local connections and example 凭证s in sample code only; there is no hidden 凭证 访问 or unexplAIned secret requirements.
持久化与权限
技能 is instruction-only, always:false, and does not 请求 persistent privileges. The only 运行time concern is that its 图形界面dance tells users to 运行 a locally 列出ening CDP server (a normal behavior for a headless browser) which can expose a local port — not a 技能s-框架 privilege, but an operational surface to be mindful of.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install obscura-skill
镜像加速npx clawhub@latest install obscura-skill --registry https://cn.longxiaskill.com

技能文档

Obscura — 面向 AI 代理与网页抓取的无头浏览器 源码:https://github.com/h4ckf0r0day/obscura 许可证:Apache 2.0

概述 Obscura 是用 Rust 编写的开源无头浏览器引擎,通过 V8 执行真实 JavaScript,支持 Chrome DevTools Protocol,可无缝替代 Puppeteer/Playwright 的无头 Chrome,但内存仅 ~30 MB(对比 200+ MB),启动瞬间完成。

适用场景

  • CLI 抓取重度 JS 页面
  • 无需打包 Chromium 即可运行 Puppeteer/Playwright 脚本
  • 为 AI 代理启动 CDP 服务器供其控制
  • 绕过简单反爬(内置 stealth + 跟踪器拦截)
  • 低内存并行抓取大量 URL

触发动作 用户想单 URL JS 渲染 → obscura fetch 用户想并行抓取多 URL → obscura scrape url1 url2 … 用户已有 Puppeteer/Playwright 脚本 → 启动 obscura serve 并通过 CDP 连接 页面带反爬 → 加 --stealth 咨询反检测/指纹 → 推荐 stealth 版本

安装 macOS (Apple Silicon)

curl -LO https://github.com/h4ckf0r0day/obscura/releases/latest/download/obscura-aarch64-macos.tar.gz
tar xzf obscura-aarch64-macos.tar.gz
sudo mv obscura /usr/local/bin/
obscura --version
macOS (Intel) 与 Linux x86_64 同理,替换对应包名。 Windows:在 Releases 下载 .zip 并加入 PATH。

源码构建(带 stealth)

git clone https://github.com/h4ckf0r0day/obscura.git
cd obscura
cargo build --release --features stealth
# 二进制:./target/release/obscura
需 Rust 1.75+;首次编译约 5 min(V8 源码),后续缓存。

验证

obscura fetch https://example.com --eval "document.title"
# 输出:Example Domain

用法

  • 单页抓取
obscura fetch https://example.com --eval "document.title"
obscura fetch https://news.ycombinator.com --dump html
obscura fetch https://example.com --dump links
obscura fetch https://example.com --dump text
obscura fetch https://example.com --wait-until networkidle0
obscura fetch https://example.com --selector ".article-body"

  • 并行抓取
obscura scrape \
  https://example.com/page-1 \
  https://example.com/page-2 \
  https://example.com/page-3 \
  --concurrency 25 \
  --eval "document.querySelector('h1').textContent" \
  --format json

  • 启动 CDP 服务器
obscura serve --port 9222
obscura serve --port 9222 --stealth
obscura serve --port 9222 --proxy socks5://127.0.0.1:1080
obscura serve --port 9222 --workers 4
Node 连接示例(Puppeteer/Playwright)见原文。

  • 表单提交与登录
Obscura 原生支持 POST、302 跳转、Cookie 维持。

React 等 SPA 的端到端测试 用 Obscura 替代 Chrome,测试提速 5–10×。

数据来源ClawHub ↗ · 中文优化:龙虾技能库