Xpersona
A

Anti-Bot Scraper

CLAWHUB · Unverified

基于 Playwright 的反爬虫网页抓取技能。支持普通模式、隐身模式和批量模式。内置反检测技术(隐藏 webdriver、随机 UA、Canvas/WebGL 指纹防护)绕过常见反爬虫机制。使用场景:抓取网页内容、反爬虫抓取、批量采集、截图保存。触发关键词:scrape, 抓取, 爬虫, 反爬, stealt... Skill: Anti-Bot Scraper Owner: tttyix Summary: 基于 Playwright 的反爬虫网页抓取技能。支持普通模式、隐身模式和批量模式。内置反检测技术(隐藏 webdriver、随机 UA、Canvas/WebGL 指纹防护)绕过常见反爬虫机制。使用场景:抓取网页内容、反爬虫抓取、批量采集、截图保存。触发关键词:scrape, 抓取, 爬虫, 反爬, stealt... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-25T07:21:19.229Z | user v1.0.0: 11 anti-detection techniques, batch mode, CSS selector, proxy support. Tested on Xiaohongshu. Archive index: Archive v1.0.0: 9

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177ddgthm2yjat0107kqrcvzs83k5xs:anti-bot-scraper
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tttyix-anti-bot-scraper/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

9,324 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: stealth-scraper
description: 基于 Playwright 的反爬虫网页抓取技能。支持普通模式、隐身模式和批量模式。内置反检测技术(隐藏 webdriver、随机 UA、Canvas/WebGL 指纹防护)绕过常见反爬虫机制。使用场景:抓取网页内容、反爬虫抓取、批量采集、截图保存。触发关键词:scrape, 抓取, 爬虫, 反爬, stealth scrape, 采集网页, 批量抓取。
bins:
  - node
---

# Stealth Scraper

> 基于 Playwright 的反爬虫网页抓取技能,支持普通模式、隐身模式和批量模式。

## Description

强大的网页抓取工具,内置反检测技术,绕过常见反爬虫机制。纯手写反检测代码,不依赖任何第三方 stealth 插件。

**核心能力:**
- 🕵️ 隐身模式:隐藏 webdriver 指纹、随机 UA、随机延迟、禁用指纹追踪
- 📄 普通模式:快速抓取页面内容
- 📦 批量模式:并发抓取多个 URL,自动限速
- 🎯 精确提取:CSS 选择器定向抓取
- 📸 截图 & HTML 保存

## Configuration

```yaml
bins: ["node"]
```

## Setup

首次使用前需要安装依赖:

```bash
cd ~/.openclaw/workspace/skills/stealth-scraper
npm install
```

如果 Chromium 未自动安装,运行:

```bash
node scripts/setup.js
```

## Usage

### 普通模式(快速抓取)

```bash
node scripts/scraper-simple.js <URL> [options]
```

**参数:**
| 参数 | 说明 | 默认值 |
|------|------|--------|
| `--wait <ms>` | 页面加载后等待时间(毫秒) | 2000 |
| `--selector <css>` | CSS 选择器,只提取匹配元素的内容 | 无(提取全部) |

**示例:**
```bash
# 基本抓取
node scripts/scraper-simple.js https://example.com

# 等待 5 秒后提取
node scripts/scraper-simple.js https://example.com --wait 5000

# 只提取文章正文
node scripts/scraper-simple.js https://example.com --selector "article.content"
```

### 隐身模式(反爬虫)

```bash
node scripts/scraper-stealth.js <URL> [options]
```

**参数:**
| 参数 | 说明 | 默认值 |
|------|------|--------|
| `--wait <ms>` | 页面加载后等待时间(毫秒) | 2000 |
| `--selector <css>` | CSS 选择器精确提取 | 无 |
| `--proxy <url>` | 代理服务器地址 | 无 |
| `--screenshot <path>` | 保存截图到指定路径 | 无 |
| `--html <path>` | 保存完整 HTML 到指定路径 | 无 |
| `--cookie <json>` | 自定义 cookie(JSON 格式) | 无 |
| `--scroll` | 自动滚动页面加载懒加载内容 | false |

**示例:**
```bash
# 隐身抓取
node scripts/scraper-stealth.js https://example.com

# 使用代理 + 截图
node scripts/scraper-stealth.js https://example.com --proxy http://127.0.0.1:7890 --screenshot ./shot.png

# 自动滚动 + 保存 HTML
node scripts/scraper-stealth.js https://example.com --scroll --html ./page.html

# 带 cookie 访问
node scripts/scraper-stealth.js https://example.com --cookie '[{"name":"token","value":"abc123","domain":".example.com"}]'

# 精确提取 + 等待
node scripts/scraper-stealth.js https://example.com --selector "div.main" --wait 5000
```

### 批量模式

```bash
node scripts/scraper-batch.js [options] <URL1> <URL2> ...
# 或
node scripts/scraper-batch.js --file urls.txt [options]
```

**参数:**
| 参数 | 说明 | 默认值 |
|------|------|--------|
| `--file <path>` | URL 列表文件(每行一个 URL) | 无 |
| `--concurrency <n>` | 并发数 | 3 |
| `--stealth` | 使用隐身模式 | false |
| `--wait <ms>` | 每个页面的等待时间 | 2000 |
| `--selector <css>` | CSS 选择器 | 无 |
| `--output <path>` | 输出 JSON 文件路径 | stdout |

**示例:**
```bash
# 批量抓取多个 URL
node scripts/scraper-batch.js https://a.com https://b.com https://c.com

# 从文件读取 URL 列表,隐身模式
node scripts/scraper-batch.js --file urls.txt --stealth --concurrency 2

# 输出到文件
node scripts/scraper-batch.js --file urls.txt --output results.json
```

## Output Format

所有模式输出统一的 JSON 结构:

```json
{
  "success": true,
  "url": "https://example.com",
  "title": "Example Domain",
  "content": "页面文本内容...

_meta.json

{
  "ownerId": "kn709z5r239w5btxqaxbxwrh4583jd0a",
  "slug": "anti-bot-scraper",
  "version": "1.0.0",
  "publishedAt": 1774423279229
}

skill-card.md

## Description:

A Playwright-based web scraping skill that supports simple, stealth, and batch scraping modes, with optional CSS selector extraction, screenshots, HTML capture, cookies, proxies, and anti-detection browser behavior.

This skill is ready for commercial/non-commercial use.

## Publisher:

[tttyix](https://clawhub.ai/user/tttyix)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and automation agents use this skill to collect web page text, links, images, metadata, screenshots, or saved HTML from authorized websites. It is suited to single-page collection, CSS-targeted extraction, and batch scraping workflows that need Playwright browser rendering.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can automate browser scraping with stealth behavior and may be misused against websites where scraping is not authorized.

Mitigation: Use it only on websites where the operator has authorization, and review target site terms, robots.txt, and applicable policies before execution.

Risk: Cookie, proxy, browser, and install-time permissions can expose account context or route traffic through untrusted infrastructure.

Mitigation: Avoid account session cookies unless account-level actions are intended, use only trusted proxies, avoid localhost, private-network, and cloud metadata targets, and install in a sandbox with reviewed dependencies.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/tttyix/skills/anti-bot-scraper)
- [Publisher Profile](https://clawhub.ai/user/tttyix)

## Skill Output:

**Output Type(s):** [text, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance and shell commands; scraper scripts emit JSON results and may write screenshot or HTML files when requested.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [JSON scraper output includes success status, URL, title, content, links, images, metadata, and elapsed time.]

## Skill Version(s):

1.0.0 (source: release evidence and package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

package-lock.json

{
  "name": "stealth-scraper",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "name": "stealth-scraper",
      "version": "1.0.0",
      "hasInstallScript": true,
      "dependencies": {
        "playwright": "^1.52.0"
      }
    },
    "node_modules/fsevents": {
      "version": "2.3.2",
      "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz",
      "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
      "hasInstallScript": true,
      "license": "MIT",
      "optional": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
      }
    },
    "node_modules/playwright": {
      "version": "1.58.2",
      "resolved": "https://registry.npmmirror.com/playwright/-/playwright-1.58.2.tgz",
      "integrity": "sha512-vA30H8Nvkq/cPBnNw4Q8TWz1EJyqgpuinBcHET0YVJVFldr8JDNiU9LaWAE1KqSkRYazuaBhTpB5ZzShOezQ6A==",
      "license": "Apache-2.0",
      "dependencies": {
        "playwright-core": "1.58.2"
      },
      "bin": {
        "playwright": "cli.js"
      },
      "engines": {
        "node": ">=18"
      },
      "optionalDependencies": {
        "fsevents": "2.3.2"
      }
    },
    "node_modules/playwright-core": {
      "version": "1.58.2",
      "resolved": "https://registry.npmmirror.com/playwright-core/-/playwright-core-1.58.2.tgz",
      "integrity": "sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg==",
      "license": "Apache-2.0",
      "bin": {
        "playwright-core": "cli.js"
      },
      "engines": {
        "node": ">=18"
      }
    }
  }
}

package.json

{
  "name": "stealth-scraper",
  "version": "1.0.0",
  "description": "Anti-detection web scraper powered by Playwright",
  "private": true,
  "scripts": {
    "postinstall": "npx playwright install chromium",
    "setup": "node scripts/setup.js",
    "simple": "node scripts/scraper-simple.js",
    "stealth": "node scripts/scraper-stealth.js",
    "batch": "node scripts/scraper-batch.js"
  },
  "dependencies": {
    "playwright": "^1.52.0"
  }
}

Sponsored

Ads related to Anti-Bot Scraper and adjacent AI workflows.