使用 scrapling 进行网页抓取和数据提取。根据目标网站特征自动选择最佳 Fetcher, 生成并执行 Python 脚本完成任务。Use when: (1) 抓取/爬取网页内容或数据(scrape, crawl, fetch page, extract data) (2) 需要绕过 Cloudflare/WAF 等反爬保护 (3) 登录后抓取受保护页面 (4) 解析已有 HTML…

MITAuto-check passedData & Analytics

Install Scrapling

skills CLI
$ npx skills add Cedriccmh/claude-code-skill-scrapling --skill scrapling -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Cedriccmh/claude-code-skill-scrapling scrapling --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
scrapling
GitHub stars
443
Token cost
~1.1k tokens
SKILL.md length
224 words
Files
16 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

使用 scrapling 进行网页抓取和数据提取。根据目标网站特征自动选择最佳 Fetcher, 生成并执行 Python 脚本完成任务。Use when: (1) 抓取/爬取网页内容或数据(scrape, crawl, fetch page, extract data) (2) 需要绕过 Cloudflare/WAF 等反爬保护 (3) 登录后抓取受保护页面 (4) 解析已有 HTML…

  • 抓取/爬取网页内容或数据(scrape
  • SKILL.md covers 步骤 0:检查版本, 步骤 1:安全预检与 quick path, 步骤 2:选择 Fetcher and 步骤 3:执行工作流, plus 5 more sections
  • Runs Python scripts from its folder; calls uv and python
  • 需要绕过 Cloudflare/WAF 等反爬保护

What it does

Scrapling is an agent skill from Cedriccmh/claude-code-skill-scrapling. 使用 scrapling 进行网页抓取和数据提取。根据目标网站特征自动选择最佳 Fetcher, 生成并执行 Python 脚本完成任务。Use when: (1) 抓取/爬取网页内容或数据(scrape, crawl, fetch page, extract data) (2) 需要绕过 Cloudflare/WAF 等反爬保护 (3) 登录后抓取受保护页面 (4) 解析已有 HTML 提取结构化数据 (5) 用户提供 URL 并要求获取页面内容或特定元素 (6) 批量采集多个页面

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including reference files (for example `README.md`, `references/api-quick-ref.md` and `references/cookie-vault.md`).

It sits in Data & Analytics, covering Web scraping. It works with Cloudflare and Python. The repository describes itself as: Claude Code skill for web scraping with scrapling - auto Fetcher selection, Cloudflare bypass, site patterns. The licence is MIT.

When your agent uses it

  • 抓取/爬取网页内容或数据(scrape
  • 需要绕过 Cloudflare/WAF 等反爬保护
  • 解析已有 HTML 提取结构化数据
  • 用户提供 URL 并要求获取页面内容或特定元素

Example prompts

  • “/scrapling”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Bash(python*), Bash(pip*), Bash(uv*), Bash(scrapling*)

What it can do on your machine

Read from SKILL.md and the folder at commit 85dd89f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(python*)
    • Bash(pip*)
    • Bash(uv*)
    • Bash(scrapling*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Scrapling loads about 1.1k tokens when it runs, and up to ~6.4k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 224 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Cedriccmh/claude-code-skill-scrapling at commit 85dd89f, republished under its MIT licence (© Cedriccmh). 224 words, ~1,096 tokens.

Download SKILL.mdSave it as .claude/skills/scrapling/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
scrapling
description
使用 scrapling 进行网页抓取和数据提取。根据目标网站特征自动选择最佳 Fetcher, 生成并执行 Python 脚本完成任务。Use when: (1) 抓取/爬取网页内容或数据(scrape, crawl, fetch page, extract data) (2) 需要绕过 Cloudflare/WAF 等反爬保护 (3) 登录后抓取受保护页面 (4) 解析已有 HTML 提取结构化数据 (5) 用户提供 URL 并要求获取页面内容或特定元素 (6) 批量采集多个页面
allowed-tools
Bash(python*), Bash(pip*), Bash(uv*), Bash(scrapling*)

Scrapling 网页抓取 Skill

步骤 0:检查版本

bash
python -c "import scrapling; print(scrapling.__version__)"

按项目使用的包管理器执行(pip / uv 等价命令见 references/maintenance.md):

  • 未安装 → 安装 scrapling[fetchers] + scrapling install
  • 有新版 → 升级 → 查 changelog 告知用户
  • 已最新 → 继续

项目根存在 uv.lock 或 pyproject.toml 含 [tool.uv],优先用 uv(uv add / uv run scrapling install);否则用 pip。

步骤 1:安全预检与 quick path

先查阅 references/security.md,确认授权、robots.txt / ToS、Prompt injection、cookie 保存与 redaction 边界。

简单文本 / Markdown / selector 抽取优先用 Scrapling CLI quick path,并默认加 --ai-targeted:

bash
scrapling extract get "https://example.com/article" article.md --ai-targeted
scrapling extract fetch "https://example.com/app" app.md --ai-targeted --network-idle
scrapling extract stealthy-fetch "https://protected.example.com" page.md --ai-targeted --solve-cloudflare

CLI 无法满足复杂登录、多页流程、结构化字段或复用代码时,再生成 Python 脚本。

步骤 2:选择 Fetcher

目标网站 →
│
├─ 已有 HTML 字符串/文件,只需解析?
│   → Selector(纯解析,无网络请求)
│   → 模板: parse_only.py
│
├─ 静态页面,无 JS 渲染,无反爬?
│   → Fetcher(最快,基于 curl_cffi)
│   → 模板: basic_fetch.py
│
├─ 需要登录(HTTP 表单,非 JS 登录)?
│   → FetcherSession(保持会话 cookie)
│   → 模板: session_login.py
│
├─ 有 Cloudflare / WAF 保护?
│   → StealthyFetcher(Camoufox 浏览器,自动过 CF)
│   → 模板: stealth_cloudflare.py
│
├─ SPA 应用(React/Vue),需要 JS 渲染?
│   → DynamicFetcher(Playwright 浏览器)
│   → 基于模板即时生成
│
└─ 不确定?
    → 先用 Fetcher 试,403/空内容 → 升级到 StealthyFetcher

复杂 crawl / Spider / adaptive scraping / MCP / proxy rotation 等高级能力,不在本轻量 skill 内展开;先查 references/upstream-map.md,再按 upstream 官方文档补充。

步骤 3:执行工作流

1. 检查版本(步骤 0)
2. 安全预检(步骤 1)
3. 查阅 references/site-patterns.md;如果存在 references/site-patterns.local.md,也先查本地 overlay
4. 简单抽取 → 优先 CLI quick path + --ai-targeted
5. 复杂流程 → 用决策树选择 Fetcher,读取对应模板,替换参数,生成完整脚本
6. 执行脚本 / CLI → 返回最小必要结果
7. **沉淀经验(必做)**:
   - 新通用站点类型 → 去敏感化后追加到 references/site-patterns.md
   - 私有站点 / 公司站点 / 登录态细节 → 追加到 references/site-patterns.local.md(不提交)
   - 用户明确授权保存真实 cookie → 保存到 references/cookie-vault.local.md(不提交,必须 redact 输出)
   - **完成抓取后必须检查**:是否有新的 cookie 或 site pattern 需要保存,以及是否属于 local overlay

Guardrails

  • 只抓取用户有权访问或明确授权的内容;不要绕过 paywall、验证码、登录限制或访问控制来获取未授权内容。
  • 输出给 agent / LLM 的网页内容默认先清洗、限域或结构化;CLI 输出默认使用 --ai-targeted。
  • 真实 cookie / token 不写入 references/cookie-vault.md,只写本地 references/cookie-vault.local.md,且必须先获用户授权。
  • 公司 / 私有站点经验不写公共 references/site-patterns.md,只写本地 references/site-patterns.local.md。
  • 大规模 crawl 前先查 robots.txt / ToS,降低并发并加 delay;Spider 场景查 upstream 后优先使用 robots_txt_obey = True。
Fetcher 类型Cookie 格式示例
Fetcher / FetcherSessiondict{'name': 'value', 'token': 'abc'}
StealthyFetcher / DynamicFetcherlist[dict][{'name': 'n', 'value': 'v', 'domain': '.site.com', 'path': '/'}]

浏览器 Fetcher cookie 必填字段: name, value, domain, path

超时单位速查

Fetcher 类型超时单位示例
Fetcher / FetcherSession秒timeout=30
StealthyFetcher / DynamicFetcher毫秒timeout=60000

模板索引

模板文件何时读取
基础 HTTP 抓取templates/basic_fetch.py目标为静态页面,无反爬
Cloudflare 绕过templates/stealth_cloudflare.py目标有 CF/WAF 保护
Session 登录templates/session_login.py需 HTTP 表单登录后抓取
纯 HTML 解析templates/parse_only.py已有 HTML 字符串,只需提取数据

References 索引

文件何时读取
references/security.md每次抓取前先查阅 — 授权、Prompt injection、cookie / token、site pattern local overlay 规则
references/site-patterns.md每次抓取前先查阅 — 检查目标站点是否有已记录的模式
references/api-quick-ref.md生成脚本时查阅 — Fetcher/Selector 方法签名和参数
references/troubleshooting.md执行报错时查阅 — 按错误信息查找原因和解决方案
references/cookie-vault.md需要登录 cookie 时查阅 — 只存模板 / 字段名;真实值用 references/cookie-vault.local.md
references/maintenance.md安装/升级/依赖问题时查阅 — 安装层级和验证命令
references/upstream-map.md需要 CLI quick path、官方 skill 对齐、Spider / adaptive / MCP / proxy 等高级能力时查阅

© Cedriccmh, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (references) in the repository root of Cedriccmh/claude-code-skill-scrapling.

  • SKILL.md
  • .gitignore
  • LICENSE
  • README.md
  • references/api-quick-ref.md
  • references/cookie-vault.md
  • references/maintenance.md
  • references/security.md
  • references/site-patterns.md
  • references/troubleshooting.md
  • references/upstream-map.md
  • templates/basic_fetch.py
  • templates/parse_only.py
  • templates/session_login.py
  • templates/stealth_cloudflare.py
  • tests/test_pr1_pr3_content.py

Open the folder on GitHubat commit 85dd89f

Compare with similar skills

Scrapling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Scrapling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Scrapling this skillCedriccmh/claude-code-skill-scrapling443—~1.1kAutomated safety check: PassMIT
ScraplingTommy-yw/RunbookHermes5464 repos~2.3kAutomated safety check: PassMIT
Scraplingarchibate/dotfiles-opencode1081 repos~4.9kAutomated safety check: WarnBSD-3-Clause
Producthunt Launchesbrowser-act/skills6.1k—~2.6kAutomated safety check: PassMIT
Crawl4AI Web Scrapingsmallnest/goclaw5981 repos~2.5kAutomated safety check: PassMIT
Boss Zhipin Scrapereatmoreduck/boss-zhipin-scraper1.5k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Scrapling

    Tommy-yw/RunbookHermes

    Web scraping with Scrapling - HTTP fetching, stealth browser automation, Cloudflare bypass, and spider crawling via CLI and Python.

    546 GitHub starsUsed in 4 repos~2.3k tokens
    Data & AnalyticsAuto-check passed
  • Scrapling

    archibate/dotfiles-opencode

    Scrape web pages using Scrapling with anti-bot bypass (like Cloudflare Turnstile), stealth headless browsing, spiders framework, adaptive scraping, and JavaScript rendering.

    108 GitHub starsUsed in 1 repo~4.9k tokens
    Data & AnalyticsAuto-check: warnings
  • Producthunt Launches

    browser-act/skills

    Scrape Product Hunt daily/weekly/monthly/yearly leaderboard launches with full product details, maker profiles, and website contact info.

    6.1k GitHub stars~2.6k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Crawl4AI Web Scraping

    smallnest/goclaw

    Scrapes sites, handles JavaScript-heavy pages and extracts structured data with Crawl4AI, through its crwl CLI or Python SDK, including schema-based extraction without an LLM.

    598 GitHub starsUsed in 1 repo~2.5k tokens
    Data & AnalyticsAuto-check passed
  • Boss Zhipin Scraper

    eatmoreduck/boss-zhipin-scraper

    Scrape BOSS直聘 (job listing site) via Chrome CDP. An agent skill from eatmoreduck/boss-zhipin-scraper.

    1.5k GitHub stars~2.6k tokensUpdated 9 days ago
    Data & AnalyticsAuto-check passed
  • Ax

    yusukebe/ax

    Use the ax CLI instead of curl + throwaway parsing scripts whenever you fetch a URL, explore an unknown web page, or extract structured data from HTML.

    719 GitHub starsUsed in 1 repo~918 tokens
    Data & AnalyticsAuto-check passed

Questions about Scrapling

What does Scrapling do?

使用 scrapling 进行网页抓取和数据提取。根据目标网站特征自动选择最佳 Fetcher, 生成并执行 Python 脚本完成任务。Use when: (1) 抓取/爬取网页内容或数据(scrape, crawl, fetch page, extract data) (2) 需要绕过 Cloudflare/WAF 等反爬保护 (3) 登录后抓取受保护页面 (4) 解析已有 HTML…. Scrapling is an agent skill from Cedriccmh/claude-code-skill-scrapling.

When should I use Scrapling?

Scrapling fits situations like: 抓取/爬取网页内容或数据(scrape; 需要绕过 Cloudflare/WAF 等反爬保护; 解析已有 HTML 提取结构化数据; 用户提供 URL 并要求获取页面内容或特定元素.

How do I install Scrapling in Claude Code?

Run `npx skills add Cedriccmh/claude-code-skill-scrapling --skill scrapling -a claude-code`. Or copy the skill folder (the Cedriccmh/claude-code-skill-scrapling repository) into .claude/skills/scrapling in your project. Claude Code loads it when a task matches its description.

How do I install Scrapling in Codex?

Run `npx skills add Cedriccmh/claude-code-skill-scrapling --skill scrapling -a codex`. Or copy the skill folder (the Cedriccmh/claude-code-skill-scrapling repository) into .agents/skills/scrapling in your project. Codex loads it when a task matches its description.

Can I use Scrapling in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Cedriccmh/claude-code-skill-scrapling --skill scrapling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/scrapling, .gemini/skills/scrapling, .github/skills/scrapling and .opencode/skills/scrapling in your project.

What does Scrapling need to run?

Going by SKILL.md and its folder, Scrapling needs Python for the scripts in its folder and the command-line tools its instructions call (uv and python). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash(python*), Bash(pip*), Bash(uv*), Bash(scrapling*).

Does Scrapling access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Scrapling safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Scrapling use?

Scrapling is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Scrapling use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.3k tokens, read only when the agent opens those files.

What are the alternatives to Scrapling?

Skills that share tags, products or a category with Scrapling: Scrapling (Tommy-yw/RunbookHermes, 546 stars), Scrapling (archibate/dotfiles-opencode, 108 stars), Producthunt Launches (browser-act/skills, 6.1k stars) and Crawl4AI Web Scraping (smallnest/goclaw, 598 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Scrapling?

Cedriccmh (a GitHub user) maintains it in Cedriccmh/claude-code-skill-scrapling, which has 443 GitHub stars. The repository was last updated on June 18, 2026.

Source: Cedriccmh/claude-code-skill-scrapling on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.