Claude Code skill for web scraping with scrapling - auto Fetcher selection, Cloudflare bypass, site patterns.
$ npx -y skills add Cedriccmh/claude-code-skill-scrapling --agent claude-code
English | 中文
A Claude Code skill for web scraping and data extraction using scrapling.
Automatically selects the best Fetcher based on target website characteristics, uses Scrapling CLI quick paths for simple extraction, and generates Python scripts when needed.
references/security.md covers authorization, Prompt injection, --ai-targeted, local cookie vaults, and redactionreferences/upstream-map.md keeps this lightweight skill aligned with D4Vinci/Scrapling and scrapling-officialPick whichever package manager your project uses:
# pip
pip install "scrapling[fetchers]"
scrapling install # Install browser dependencies
# uv (project)
uv add "scrapling[fetchers]"
uv run scrapling install
# uv (global / standalone, no pyproject.toml)
uv pip install "scrapling[fetchers]"
scrapling install
Copy the skill directory to your Claude Code skills folder:
# Copy to user-level skills (available in all projects)
cp -r . ~/.claude/skills/scrapling
# Or copy to a specific project
cp -r . /path/to/project/.claude/skills/scrapling
.
├── SKILL.md # Skill definition (entry point)
├── references/
│ ├── api-quick-ref.md # Fetcher/Selector API cheat sheet
│ ├── cookie-vault.md # Cookie storage template
│ ├── maintenance.md # Installation & upgrade guide
│ ├── security.md # Authorization, prompt-injection, cookie/token guardrails
│ ├── site-patterns.md # Site-specific scraping patterns
│ ├── troubleshooting.md # Error solutions
│ └── upstream-map.md # Official Scrapling docs/skill sync map
└── templates/
├── basic_fetch.py # Static page scraping
├── stealth_cloudflare.py # Cloudflare bypass
├── session_login.py # Login + multi-page scraping
└── parse_only.py # HTML parsing without network
Once installed, Claude Code will automatically activate this skill when you ask it to:
For simple text/Markdown extraction, prefer Scrapling CLI with --ai-targeted before writing Python:
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
> Scrape the title and content from https://example.com/blog
> Extract all product prices from this page: https://shop.example.com
> This site has Cloudflare, scrape it anyway: https://protected.example.com
> I have this HTML, extract all links from it
The references/cookie-vault.md file is a template. For actual use:
cookie-vault.local.md (or keep it in your local skill installation)references/cookie-vault.local.md.references/site-patterns.local.md..gitignore.references/site-patterns.md generic and scrubbed of secrets.基于 scrapling 的 Claude Code 网页抓取技能。
根据目标网站特征自动选择最佳 Fetcher;简单抽取优先用 Scrapling CLI quick path,复杂流程再生成并执行 Python 脚本。
references/security.md 说明授权、Prompt injection、--ai-targeted、本地 cookie vault 与 redactionreferences/upstream-map.md 说明如何与 D4Vinci/Scrapling 和 scrapling-official 保持轻量对齐按项目所用的包管理器选一种即可:
# pip
pip install "scrapling[fetchers]"
scrapling install # 安装浏览器依赖
# uv(项目内)
uv add "scrapling[fetchers]"
uv run scrapling install
# uv(全局 / 独立,无 pyproject.toml)
uv pip install "scrapling[fetchers]"
scrapling install
将技能目录复制到 Claude Code 的 skills 文件夹:
# 复制到用户级 skills(所有项目可用)
cp -r . ~/.claude/skills/scrapling
# 或复制到特定项目
cp -r . /path/to/project/.claude/skills/scrapling
.
├── SKILL.md # 技能定义(入口文件)
├── references/
│ ├── api-quick-ref.md # Fetcher/Selector API 速查表
│ ├── cookie-vault.md # Cookie 存储模板
│ ├── maintenance.md # 安装与升级指南
│ ├── security.md # 授权、prompt-injection、cookie/token 安全边界
│ ├── site-patterns.md # 站点专用抓取模式
│ ├── troubleshooting.md # 错误解决方案
│ └── upstream-map.md # 官方 Scrapling 文档 / skill 同步地图
└── templates/
├── basic_fetch.py # 静态页面抓取
├── stealth_cloudflare.py # Cloudflare 绕过
├── session_login.py # 登录 + 多页抓取
└── parse_only.py # 纯 HTML 解析(无需网络)
安装后,当你向 Claude Code 提出以下需求时,技能会自动激活:
简单文本 / Markdown 抽取优先使用 Scrapling CLI,并默认加 --ai-targeted:
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
> 抓取 https://example.com/blog 的标题和正文
> 提取这个页面的所有商品价格:https://shop.example.com
> 这个站点有 Cloudflare,帮我绕过抓取:https://protected.example.com
> 我有这段 HTML,提取里面所有链接
references/cookie-vault.md 是一个模板文件。实际使用时:
cookie-vault.local.md(或在本地 skill 安装目录中保存)references/cookie-vault.local.md。references/site-patterns.local.md。.gitignore 忽略。references/site-patterns.md 只保留去敏感化后的通用经验。MIT
claude-code-skill-scrapling is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Research category. Install it with the command on its page. It includes claude-code-skill-scrapling. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it