scrapling

scrapling is a skill for Claude Code, Codex from KCNyu/clawock. It costs 0 tokens per session (998 once invoked), scanned A, original, MIT.

A Python framework for collecting information from websites, including pages whose content is created by JavaScript. It provides CSS and XPath selectors for extracting text, links, and other page data, and includes browser-based fetching for sites with anti-bot checks.

In plain words
What is it for?
Use it to fetch web pages, extract titles, text, links, attributes, and selected elements, or scrape JavaScript-heavy sites with a headless browser.
Why use it?
It reduces the need to rewrite scraping code when a website’s structure changes. It also covers both quick static requests and browser-rendered pages in one tool.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fetch web pages, extract titles, text, links, attributes, and selected elements, or scrape JavaScript-heavy sites with a headless browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kcnyu/clawock/scrapling
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KCNyu/clawock --skill scrapling
Clone the repo
git clone --depth 1 https://github.com/KCNyu/clawock

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scrapling

README.md
[![agentmods](https://agentmods.dev/badge/skills/kcnyu/clawock/scrapling/github.svg)](https://agentmods.dev/skills/kcnyu/clawock/scrapling)
Your own site
<a href="https://agentmods.dev/skills/kcnyu/clawock/scrapling"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/scrapling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scrapling

Your own site · 80×15
<a href="https://agentmods.dev/skills/kcnyu/clawock/scrapling"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/scrapling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00998
Opus 5.5 $0.00000 $0.00399
Sonnet 5.5 $0.00000 $0.00200
Haiku 4.5 $0.00000 $0.00100

Measured 1mo ago against content hash e45852302340, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scrapling scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

sp = StealthyFetcher.fetch(url, headless=True, network_idle=True)
skills/scrapling/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scrapling Web Scraping

简介

Scrapling 是一个自适应 Web 爬虫框架,能自动适应网站结构变化、支持绕过反爬(Cloudflare Turnstile 等),从单次请求到大规模爬取均可。

安装: pip3 install scrapling --break-system-packages(依赖:playwright, browserforge, patchright, msgspec)

核心 API

Fetcher 类(静态爬取,快速但无 JS 支持)

from scrapling.fetchers import Fetcher
p = Fetcher.get('https://example.com')
title = p.css('h1::text').get()
links = p.css('a::attr(href)').getall()

StealthyFetcher(绕过反爬,支持 JS 渲染)

from scrapling.fetchers import StealthyFetcher
sp = StealthyFetcher.fetch('https://example.com', headless=True)
title = sp.css('h1::text').get()
text = sp.css('p::text').get()
href = sp.css('a::attr(href)').get()

参数:

  • headless=True:无头浏览器模式
  • network_idle=True:等待网络空闲
  • adaptive=True:自适应网站结构变化

CSS 选择器

# 获取文本
p.css('h1::text').get()          # 单个值
p.css('p::text').getall()        # 全部

# 获取属性
p.css('a::attr(href)').get()     # 获取 href 属性

# 选择特定元素
p.css('.product')[0]             # 第一个
p.css('#id')                     # 按 id
p.css('.product h2')             # 嵌套

# 按内容过滤
p.css('h1:contains("Phone")::text').get()

XPath 选择器

title = p.xpath('//h1//text()').get()
p.xpath('//*[@class="product"]')
p.xpath('//a/@href')

链式选择

p.css('.product')[0].css('h2::text').get()
p.xpath('//div')[0].css('span::text').get()

自适应模式(网站结构变化时仍能找到元素)

# 第一次抓取时保存选择器映射
products = page.css('.product', auto_save=True)
# 之后网站改版,加 adaptive=True 自动适应
products = page.css('.product', adaptive=True)

Spider 框架(大规模爬取)

from scrapling.spiders import Spider, Response

class MySpider(Spider):
    name = "demo"
    start_urls = ["https://example.com/"]

    async def parse(self, response: Response):
        for item in response.css('.product'):
            yield {"title": item.css('h2::text').get()}

MySpider().start()

常用模式

# 简单静态页面
from scrapling.fetchers import Fetcher
p = Fetcher.get('https://example.com')
print(p.css('title::text').get())

# 有反爬的动态页面
from scrapling.fetchers import StealthyFetcher
sp = StealthyFetcher.fetch(url, headless=True, network_idle=True)

# POST 请求
p = Fetcher.post('https://example.com/api', json={'key': 'value'})

# 带 Header
from scrapling.fetchers import Fetcher
p = Fetcher.configure(headers={'User-Agent': '...'}).get('https://example.com')

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 126 lines · 0 tokens per session scan A e45852302340

Subscribe to this mod's changes

scrapling is a skill published in the GitHub repository KCNyu/clawock (21 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 998 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

browser-automation

Drive the PenguinHarness agent browser — the desktop app's built-in browser or the user's own Chrome — from the shell with penguin browser: open pages, read them as simplified HTML or text, act with JavaScript and trusted clicks and typing, and pull structured data out of them (orders, search results, tables), signed…

Prism-Shadow/penguin-harness · 0 tokens

firecrawl

Search the web and scrape pages into clean markdown with the Firecrawl API — query-based discovery, single-URL extraction including public PDFs, driven by curl with a vault-stored API key.

Prism-Shadow/penguin-harness · 41 tokens

cross-validated-search

OpenClaw skill for source-backed web search, page reading, and evidence-aware claim checking. Use it to verify factual answers with live search results and explicit source handling.

InternLM/WildClawBench · 39 tokens

x-integration

X (Twitter) integration for ClaudeClaw. Post tweets, like, reply, retweet, and quote. Use for setup, testing, or troubleshooting X functionality. Triggers on "setup x", "x integration", "twitter", "post tweet", "tweet".

sbusso/claudeclaw · 59 tokens

xhs-auto-publisher

A cloud-server workflow for preparing and publishing image-and-text posts on Xiaohongshu, a Chinese social-media platform. It uses browser automation while allowing a person to scan a login QR code.

DjangoPeng/agentic-ai · 74 tokens

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a…

RTGS2017/NagaAgent · 108 tokens