scrapling
Skill17 starsChanged 3 months agoMITView on GitHub
Scrapling 是一个自适应 Web 爬虫框架,能自动适应网站结构变化、支持绕过反爬(Cloudflare Turnstile 等),从单次请求到大规模爬取均可。 安装: pip3 install scrapling --break-system-packages(依赖:playwright, browserforge, patchright, msgspec) 参数: - headless=True:无头浏览器模式 - network_idle=True:等待网络空闲 - adaptive=True:自适应网站结构变化
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Cedriccmh/claude-code-skill-scraplingtheir own version, first seen Jun 18, 2026
- sergeeey/Claude-cod-top-2026their own version, first seen May 13, 2026
- tdimino/claude-code-minoantheir own version, first seen Apr 16, 2026
- LaoK2017/Agent-Skillstheir own version, first seen Mar 10, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Cedriccmh/claude-code-skill-scrapling★ 438same name
- tdimino/claude-code-minoan★ 40same name
- sergeeey/Claude-cod-top-2026★ 9same name
- LaoK2017/Agent-Skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- site/llms.txtllms.txt
- daily-deep-briefSkill
- earnings-reviewSkill
- entry-gateSkill
- githubSkill
- hk-stock-analysisSkill
- openclaw-tuneSkill
- openclaw-upgradeSkill
- portfolio-risk-reviewSkill
- portfolio-swarm-reviewSkill
- serenity-skillSkill
- tavilySkill
- TradingSkill
- us-stock-analysisSkill
The file
Files
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')适用场景
- 普通
requests/urllib拿不到数据的页面(有 JS 渲染或反爬) - 需要绕过 Cloudflare Turnstile 等反爬机制
- 网站结构可能变化,需要自适应能力
- 需要大规模爬取(Spider 框架支持并发、暂停恢复、代理轮换)
注意事项
StealthyFetcher速度最慢(需要启动浏览器),非必要不用Fetcher(静态)最快,但只适合纯 HTML 页面- 港股/美股行情页面优先用东方财富 API 或
qt.gtimg.cn,Scrapling 作为备选 - 大规模爬取注意
robots.txt和网站robots规则
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

