本文へ移動
cccskills
無料GitHub で公開

scrapling

使用 scrapling 进行网页抓取和数据提取。自动选择 Fetcher,支持 Cloudflare/WAF 绕过、Session 登录、HTML 解析。当用户提到 scrape/crawl/fetch page/extract data/爬取/抓取/绕过Cloudflare/解析HTML/批量采集 时触发。

インストール方法を見る

含まれるファイル(10)

  • SKILL.md3.7 KB
  • references/api-quick-ref.md3.4 KB
  • references/cookie-vault.md1.4 KB
  • references/maintenance.md2.4 KB
  • references/site-patterns.md3.3 KB
  • references/troubleshooting.md3.1 KB
  • templates/basic_fetch.py527 B
  • templates/parse_only.py488 B
  • templates/session_login.py717 B
  • templates/stealth_cloudflare.py677 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Scrapling 网页抓取 Skill

步骤 0:检查版本

pip show scrapling
  • 未安装 → 执行 pip install "scrapling[fetchers]" + scrapling install
  • 有新版 → 执行 pip install --upgrade "scrapling[fetchers]" → 查 changelog 告知用户
  • 已最新 → 继续

步骤 1:选择 Fetcher

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

步骤 2:执行工作流

1. 检查版本(步骤 0)
2. 查阅 references/site-patterns.md — 匹配已有模式则直接复用
3. 无匹配 → 用决策树选择 Fetcher
4. 读取对应模板 → 替换参数 → 生成完整脚本
5. 执行脚本 → 返回结果
6. **沉淀经验(必做)**:
   - 新站点 → 追加到 site-patterns.md
   - 新 cookie / 用户提供了 cookie → 保存到 cookie-vault.md
   - **完成抓取后必须检查**:是否有新的 cookie 或 site pattern 需要保存

Cookie 格式速查

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/site-patterns.md每次抓取前先查阅 — 检查目标站点是否有已记录的模式
references/api-quick-ref.md生成脚本时查阅 — Fetcher/Selector 方法签名和参数
references/troubleshooting.md执行报错时查阅 — 按错误信息查找原因和解决方案
references/cookie-vault.md需要登录 cookie 时查阅 — 检查是否有历史记录可复用
references/maintenance.md安装/升级/依赖问题时查阅 — 安装层级和验证命令

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

adapt

無料

Adapt designs to work across different screen sizes, devices, contexts, or platforms. Implements breakpoints, fluid layouts, and touch targets. Use when the user mentions responsive design, mobile layouts, breakpoints, viewport adaptation, or cross-device compatibility.

日本語の概要は準備中です。原文の説明を表示しています。

fengshao1227/ccg-workflow5,9382026年9月15日 更新

Audit websites for Google AdSense application readiness and ad-serving compliance. Use when checking whether a site is likely to satisfy AdSense eligibility, site ownership, content quality, navigation, crawler access, ads.txt, privacy disclosure, Google Publisher Policies, AdSense Program policies, or when the user asks if a site can apply for AdSense, pass AdSense review, show ads, or fix AdSense rejection/site-not-ready issues.

日本語の概要は準備中です。原文の説明を表示しています。

fengshao1227/ccg-workflow5,9382026年9月15日 更新

ai

無料

AI/LLM 能力索引。Agent 开发、LLM 安全、RAG 系统。当用户提到 AI、LLM、Agent、RAG、Prompt 时路由到此。

日本語の概要は準備中です。原文の説明を表示しています。

fengshao1227/ccg-workflow5,9382026年9月15日 更新

animate

無料

Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight. Use when the user mentions adding animation, transitions, micro-interactions, motion design, hover effects, or making the UI feel more alive.

日本語の概要は準備中です。原文の説明を表示しています。

fengshao1227/ccg-workflow5,9382026年9月15日 更新

架构设计能力索引。API设计、安全架构、云原生、数据安全。当用户提到架构、设计、API、云原生时路由到此。

日本語の概要は準備中です。原文の説明を表示しています。

fengshao1227/ccg-workflow5,9382026年9月15日 更新

arrange

無料

Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.

日本語の概要は準備中です。原文の説明を表示しています。

fengshao1227/ccg-workflow5,9382026年9月15日 更新

fengshao1227 のスキルをすべて見る

このスキルの問題を報告する