跳到正文
cccskills
免费在 GitHub 公开

scrapling

Extract data from websites or saved HTML using a suitable fetching method for each page. The skill generates and runs scripts for static pages, form-based logins, JavaScript rendering, and sites with Cloudflare or WAF protection.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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

集成工具Cloudflare
查看安装方法

适用场景

  • Extracting data from static web pages
  • Collecting data after a form-based login
  • Fetching pages that require JavaScript rendering
  • Parsing saved HTML files

包含的文件(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(原文)

安装前可以查看交给 AI 代理的指令内容。

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安装/升级/依赖问题时查阅 — 安装层级和验证命令

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

adapt

免费

Adapts existing designs for phones, tablets, desktops, print, and email. Adjusts layouts, navigation, content priorities, and touch controls to suit each context, with guidance for responsive sizing and verification across devices and input methods.

中文简介正在准备中。当前显示英语简介。

  • Adapting a desktop interface for mobile use
  • Adjusting tablet layouts for portrait and landscape
  • Expanding a mobile design for desktop screens
fengshao1227/ccg-workflow59432026年10月19日 更新

Audit a website for Google AdSense application readiness or ongoing ad-serving issues. Check content, navigation, crawler access, and disclosures against official requirements, then receive evidence-based findings, specific fixes, and a complete checklist with unresolved questions clearly marked.

中文简介正在准备中。当前显示英语简介。

  • Checking a site before applying for AdSense
  • Investigating issues after an AdSense rejection
  • Reviewing policy risks on a site that already serves ads
fengshao1227/ccg-workflow59432026年10月19日 更新

ai

免费

Routes AI development questions to focused references on agents, language model security, retrieval-augmented generation, which uses retrieved information in answers, and prompt design and evaluation. It also outlines principles for validation, safety boundaries, version control, and ongoing assessment.

中文简介正在准备中。当前显示英语简介。

  • Find guidance for agent development
  • Locate references on prompt injection defenses
  • Explore retrieval and reranking for RAG
fengshao1227/ccg-workflow59432026年10月19日 更新

animate

免费

Review an interface and add purposeful motion to buttons, forms, navigation, and state changes. Plan and implement animations that clarify actions and provide feedback, while checking performance and supporting users who prefer reduced motion.

中文简介正在准备中。当前显示英语简介。

  • Adding visual feedback to buttons and forms
  • Smoothing menu, modal, and tab transitions
  • Planning page entrances and scroll reveals
fengshao1227/ccg-workflow59432026年10月19日 更新

Find the relevant architectural guidance for API design, security, cloud infrastructure, message queues, and caching. This skill acts as an index to specialized references and lists principles for structuring software, distributed systems, and access controls.

中文简介正在准备中。当前显示英语简介。

  • Finding guidance for API design
  • Reviewing security architecture topics
  • Exploring containers, K8s, and Serverless
fengshao1227/ccg-workflow59432026年10月19日 更新

arrange

免费

Improve interface layouts by reviewing spacing, alignment, content density, and visual hierarchy, the cues that show what matters most. Refine repetitive card grids and crowded sections into compositions with consistent spacing and responsive structure.

中文简介正在准备中。当前显示英语简介。

  • Adjusting spacing in a crowded interface
  • Making important content easier to spot
  • Varying repetitive card-based layouts
fengshao1227/ccg-workflow59432026年10月19日 更新

查看 fengshao1227 的全部技能

报告此技能的问题