Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

cli-web-scrapeCLI WEB scrape 搜索

Agent Skill

cli-web-scrape 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

840

周安装

34

GitHub Stars

公开资料未说明

下载量

264
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cli-web-scrape(CLI WEB scrape 搜索)
来源仓库:https://github.com/molechowski/claude-skills
仓库路径:skills/cli-web-scrape
安装命令:
npx skills add https://github.com/molechowski/claude-skills --skill cli-web-scrape
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/molechowski/claude-skills --skill cli-web-scrape

简介

cli-web-scrape 提供基于 Scrapling 的网页抓取 CLI,支持浏览器 impersonation 与反 bot 绕过。

  • 适合提取静态页面、API 数据与 JS 渲染内容,支持 CSS 选择器。
  • 可选择 Playwright 或 Camoufox 引擎处理复杂前端应用。
  • 安装前应安装 fetcher 浏览器引擎,否则动态提取功能不可用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Scrapling CLI

Web scraping CLI with browser impersonation, anti-bot bypass, and CSS extraction.

Prerequisites

# Install with all extras (CLI needs click, fetchers need playwright/camoufox)
uv tool install 'scrapling[all]'

# Install fetcher browser engines (one-time)
scrapling install

Verify: scrapling --help

Fetcher Selection

TierCommandEngineSpeedStealthJSUse When
HTTPextract get/post/put/deletehttpx + TLS impersonationFastMediumNoStatic pages, APIs, most sites
Dynamicextract fetchPlaywright (headless browser)MediumLowYesJS-rendered SPAs, wait-for-element
Stealthyextract stealthy-fetchCamoufox (patched Firefox)SlowHighYesCloudflare, aggressive anti-bot

Default to HTTP tier — only escalate when the page requires JS rendering or blocks HTTP requests.

Output Format

Determined by output file extension:

ExtensionOutputBest For
.htmlRaw HTMLParsing, further processing
.mdHTML converted to MarkdownReading, LLM context
.txtText content onlyClean text extraction

Always use /tmp/scrapling-*.{md,txt,html} for output files. Read the file after extraction.

Core Commands

HTTP Tier: GET

scrapling extract get URL OUTPUT_FILE [OPTIONS]
FlagPurposeExample
-s, --css-selectorExtract matching elements only-s ".article-body"
--impersonateForce specific browser--impersonate firefox
-H, --headersCustom headers (repeatable)-H "Authorization: Bearer tok"
--cookiesCookie string--cookies "session=abc123"
--proxyProxy URL--proxy "http://user:pass@host:port"
-p, --paramsQuery params (repeatable)-p "page=2" -p "limit=50"
--timeoutSeconds (default: 30)--timeout 60
--no-verifySkip SSL verificationFor self-signed certs
--no-follow-redirectsDon't follow redirectsFor redirect inspection
--no-stealthy-headersDisable stealth headersFor debugging

Examples:

# Basic page fetch as markdown
scrapling extract get "https://example.com" /tmp/scrapling-out.md

# Extract only article content
scrapling extract get "https://news.site.com/article" /tmp/scrapling-out.txt -s "article"

# Multiple CSS selectors
scrapling extract get "https://hn.com" /tmp/scrapling-out.txt -s ".titleline > a"

# With auth header
scrapling extract get "https://api.example.com/data" /tmp/scrapling-out.txt -H "Authorization: Bearer TOKEN"

# Impersonate Firefox
scrapling extract get "https://example.com" /tmp/scrapling-out.md --impersonate firefox

# Random browser impersonation from list
scrapling extract get "https://example.com" /tmp/scrapling-out.md --impersonate "chrome,firefox,safari"

# With proxy
scrapling extract get "https://example.com" /tmp/scrapling-out.md --proxy "http://proxy:8080"

HTTP Tier: POST

scrapling extract post URL OUTPUT_FILE [OPTIONS]

Additional options over GET:

FlagPurposeExample
-d, --dataForm data-d "param1=value1&param2=value2"
-j, --jsonJSON body-j '{"key": "value"}'
# POST with form data
scrapling extract post "https://api.example.com/search" /tmp/scrapling-out.txt -d "q=test&page=1"

# POST with JSON
scrapling extract post "https://api.example.com/query" /tmp/scrapling-out.txt -j '{"query": "test"}'

PUT and DELETE share the same interface as POST and GET respectively.

Dynamic Tier: fetch

For JS-rendered pages. Launches headless Playwright browser.

scrapling extract fetch URL OUTPUT_FILE [OPTIONS]
FlagPurposeDefault
--headless/--no-headlessHeadless modeTrue
--disable-resourcesDrop images/CSS/fonts for speedFalse
--network-idleWait for network idleFalse
--timeoutMilliseconds30000
--waitExtra wait after load (ms)0
-s, --css-selectorCSS selector extraction
--wait-selectorWait for element before proceeding
--real-chromeUse installed Chrome instead of bundledFalse
--proxyProxy URL
-H, --extra-headersExtra headers (repeatable)
# Fetch JS-rendered SPA
scrapling extract fetch "https://spa-app.com" /tmp/scrapling-out.md

# Wait for specific element to load
scrapling extract fetch "https://dashboard.com" /tmp/scrapling-out.md --wait-selector ".data-table"

# Fast mode: skip images/CSS, wait for network idle
scrapling extract fetch "https://app.com" /tmp/scrapling-out.md --disable-resources --network-idle

# Extra wait for slow-loading content
scrapling extract fetch "https://lazy-site.com" /tmp/scrapling-out.md --wait 5000

Stealthy Tier: stealthy-fetch

Maximum anti-detection. Uses Camoufox (patched Firefox).

scrapling extract stealthy-fetch URL OUTPUT_FILE [OPTIONS]

Additional options over fetch:

FlagPurposeDefault
--solve-cloudflareSolve Cloudflare challengesFalse
--block-webrtcBlock WebRTC (prevents IP leak)False
--hide-canvasAdd noise to canvas fingerprintingFalse
--block-webglBlock WebGL fingerprintingFalse (allowed)
# Bypass Cloudflare
scrapling extract stealthy-fetch "https://cf-protected.com" /tmp/scrapling-out.md --solve-cloudflare

# Maximum stealth
scrapling extract stealthy-fetch "https://aggressive-antibot.com" /tmp/scrapling-out.md \
  --solve-cloudflare --block-webrtc --hide-canvas --block-webgl

# Stealthy with CSS selector
scrapling extract stealthy-fetch "https://protected.com" /tmp/scrapling-out.txt \
  --solve-cloudflare -s ".content"

Auto-Escalation Protocol

ALL scrapling usage must follow this protocol. Never use extract get alone — always validate content and escalate if needed. Consumer skills (res-deep, res-price-compare, doc-daily-digest) MUST use this pattern, not a bare extract get.

Step 1: HTTP Tier

scrapling extract get "URL" /tmp/scrapling-out.md

Read /tmp/scrapling-out.md and validate content before proceeding.

Step 2: Validate Content

Check the scraped output for thin content indicators — signs that the site requires JS rendering:

IndicatorPatternExample
JS disabled warning"JavaScript", "enable JavaScript", "JS wyłączony"iSpot.pl, many SPAs
No product/price dataOutput has navigation and footer but no prices, specs, or product namesE-commerce SPAs
Mostly nav links80%+ of content is menu items, category links, cookie bannersReact/Angular/Vue apps
Very short contentLess than ~20 meaningful lines after stripping nav/footerHydration-dependent pages
Login/loading wall"Loading...", "Please wait", skeleton UI textDashboard apps

If ANY indicator is present → escalate to Dynamic tier. Do NOT treat HTTP 200 with thin content as success.

Step 3: Dynamic Tier (if content validation fails)

scrapling extract fetch "URL" /tmp/scrapling-out.md --network-idle --disable-resources

Read and validate again. If content is now rich → done. If still blocked (403, Cloudflare challenge, empty) → escalate.

Step 4: Stealthy Tier (if Dynamic tier fails)

scrapling extract stealthy-fetch "URL" /tmp/scrapling-out.md --solve-cloudflare

If still blocked, add maximum stealth flags:

scrapling extract stealthy-fetch "URL" /tmp/scrapling-out.md \
  --solve-cloudflare --block-webrtc --hide-canvas --block-webgl

Consumer Skill Integration

When a consumer skill says "retry with scrapling" or "scrapling fallback", it means: follow the full auto-escalation protocol above, not just the HTTP tier. The pattern:

  1. extract get → Read → Validate content
  2. Content thin? → extract fetch --network-idle --disable-resources → Read → Validate
  3. Still blocked? → extract stealthy-fetch --solve-cloudflare → Read
  4. All tiers fail? → Skip and label "scrapling blocked"

Known JS-rendered sites (always start at Dynamic tier):

  • iSpot.pl — React SPA, HTTP tier returns only nav shell
  • Single-page apps with client-side routing (hash or history API URLs)

Interactive Shell

# Launch REPL
scrapling shell

# One-liner evaluation
scrapling shell -c 'Fetcher().get("https://example.com").css("title::text")'

Troubleshooting

IssueFix
ModuleNotFoundError: clickReinstall: uv tool install --force 'scrapling[all]'
fetch/stealthy-fetch failsRun scrapling install to install browser engines
Cloudflare still blocksAdd --block-webrtc --hide-canvas to stealthy-fetch
TimeoutIncrease --timeout (seconds for HTTP, milliseconds for fetch/stealthy)
SSL errorAdd --no-verify (HTTP tier only)
Empty output with selectorTry without -s first to verify page loads, then refine selector

Constraints

  • Output file path is required — scrapling writes to file, not stdout
  • CSS selectors return ALL matches concatenated
  • HTTP tier timeout is in seconds, fetch/stealthy-fetch timeout is in milliseconds
  • --impersonate only available on HTTP tier (fetch/stealthy handle it internally)
  • --solve-cloudflare only on stealthy-fetch tier
  • Stealth headers enabled by default on HTTP tier — disable with --no-stealthy-headers for debugging

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.01%
按下载量换算98

Claude

28.95%
按下载量换算76

Cursor

17.77%
按下载量换算47

Gemini CLI

8.9%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills