Skip to content
Back to skills

Scrapling

ASecurity

Web scraping that gets past anti-bot — HTTP fetch / stealth (Cloudflare bypass) / JS-render / spider crawl, via the `scrapling` CLI. Use when web_extract is blocked or returns empty, or to scrape a protected/dynamic site or crawl many pages. Triggers: scrape / crawl a site, \"scrape this page\", \"the site blocks bots / anti-bot\", \"bypass Cloudflare\", a dynamic/JS page web_extract can't read; 爬 / 爬虫 / 抓取 / 爬一下 / 抓一下这个网站 / 这个站爬不动 / 反爬 / 绕过反爬 / 绕过 Cloudflare / 动态页抓不到 / 批量抓取.

  • 418 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 18, 2026
ai-agentspythongoshellbashgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add cloveric/tarobird --skill scrapling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scrapling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scrapling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cloveric-scrapling-tarobird/badge)](https://www.skillsdirectory.com/skills/cloveric-scrapling-tarobird)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scrapling
description: "Web scraping that gets past anti-bot — HTTP fetch / stealth (Cloudflare bypass) / JS-render / spider crawl, via the `scrapling` CLI. Use when web_extract is blocked or returns empty, or to scrape a protected/dynamic site or crawl many pages. Triggers: scrape / crawl a site, \"scrape this page\", \"the site blocks bots / anti-bot\", \"bypass Cloudflare\", a dynamic/JS page web_extract can't read; 爬 / 爬虫 / 抓取 / 爬一下 / 抓一下这个网站 / 这个站爬不动 / 反爬 / 绕过反爬 / 绕过 Cloudflare / 动态页抓不到 / 批量抓取."
---

# Scrapling — anti-bot web scraping (CLI)

[Scrapling](https://github.com/D4Vinci/Scrapling) fetches web pages with anti-bot bypass, stealth (headless) browser automation, JS rendering, and a spider framework. This Skill targets the reviewed Scrapling **0.5** runtime: **HTTP** for light requests and **stealth browser** for JS rendering. Scrapling is optional; first check `command -v scrapling` and `scrapling extract --help`. If missing, use the packaged `scripts/install-scrapling.sh` on macOS/Linux when installation is requested. Never assume the browser dependencies are already installed. Run `scrapling extract <sub> --help` for exact flags.

> Educational/research use. Respect robots.txt and each site's Terms of Service.

## When to use Scrapling (vs the bot's other web tools)

The bot has several ways to read the web — **use the lightest that works, escalate only when it fails**:

1. **Search / "what's the latest" / don't know the URL** → prefer configured WebSearch MCP; otherwise use the engine's native search. If MCP fails, use native search and disclose the failed route.
2. **A normal public page** → configured MCP `web_extract`, or native fetch if no MCP is available.
3. **X/Twitter, or any page that needs YOUR login** → the **x-fetch** skill (it uses the logged-in Chrome). Scrapling has **no login session**, so it cannot reach private/logged-in content.
4. **Multi-step interaction or user login** → the selected browser skill and its declared profile, or the App browser tool. This Skill handles public-page extraction; its isolated browser does not inherit the user's browser login.
5. **Reach for Scrapling when any of these is true:**
   - `web_extract` came back **blocked / a login or captcha wall / a Cloudflare page / suspiciously empty / clearly not the real content** → that is the signal to escalate. Do **not** accept the garbage as the answer.
   - The page is **JS-rendered** and `web_extract` returns an empty shell.
   - You **already know** the site is anti-bot or dynamic (you were told, or it's a known protected site) → go straight to Scrapling; don't waste a doomed `web_extract` first.
   - You need to **crawl many pages / extract structured fields at scale**.

**Match the weight to the task.** Inside Scrapling, prefer the light HTTP `get` for plain pages; use `fetch` (an isolated headless stealth browser) only when blocked or when JS rendering is needed. Add `--solve-cloudflare` only when required.

**Don't loop.** If even Scrapling's stealth fetch is blocked (hard anti-bot needing residential proxies / CAPTCHA solving), STOP and report "couldn't get past the anti-bot" — don't retry forever or keep escalating.

**Save tokens.** Always extract just what you need with a selector (`--css-selector '...'`) into a `.md`/`.txt` file — do NOT dump full raw HTML into the conversation.

## CLI usage

Output format follows the file extension: `.md` (Markdown), `.txt` (plain text), `.html` (raw HTML). For structured JSON/JSONL, extract fields with Python and serialize them explicitly.

```bash
# Static page (HTTP — light, no browser). Add a selector to grab only what you need.
scrapling extract get 'https://example.com' out.md --css-selector '.content' --impersonate chrome

# JS-rendered page (opens a browser to run JS)
scrapling extract fetch 'https://example.com' out.md --css-selector '.dynamic' --network-idle

# Cloudflare / anti-bot protected page (stealth headless browser)
scrapling extract fetch 'https://protected-site.com' out.md --solve-cloudflare --block-webrtc

# POST request
scrapling extract post 'https://example.com/api' out.txt --json '{"query":"term"}'
```

| Strategy | CLI sub / Python class | Use when |
|---|---|---|
| HTTP | `get` / `Fetcher` | static pages, APIs, fast bulk — no browser |
| Dynamic | `fetch` / `StealthyFetcher` | JS-rendered content, SPAs |
| Stealth | `fetch --solve-cloudflare` / `StealthyFetcher` | Cloudflare, anti-bot sites |
| Spider | `Spider` (Python) | multi-page crawl with link-following |

## Python (for selectors, custom automation, spiders)

Use the interpreter from the installed Scrapling venv: `SCRAPLING_VENV/bin/python`
when configured, otherwise `~/.tarobot/tools/scrapling/venv/bin/python`. Existing
legacy installations may live at `~/projects/scrapling-mcp/venv`; check the CLI
symlink before choosing. Do not assume system Python has this optional package.

```python
from scrapling.fetchers import Fetcher, StealthyFetcher

page = Fetcher.get('https://quotes.toscrape.com/')             # HTTP (light)
page.css('.quote .text::text').getall()                        # CSS selector
page.xpath('//a/@href').getall()                               # XPath
page.find_by_text('Read more', tag='a')                        # by text

StealthyFetcher.fetch('https://example.com', headless=True, network_idle=True)             # JS render
StealthyFetcher.fetch('https://protected.com', headless=True, solve_cloudflare=True)      # anti-bot
```

Spider — multi-page crawl with pause/resume:
```python
from scrapling.spiders import Spider, Response

class QuotesSpider(Spider):
    name = "quotes"
    start_urls = ["https://quotes.toscrape.com/"]
    concurrent_requests = 10
    download_delay = 1
    async def parse(self, response: Response):
        for q in response.css('.quote'):
            yield {"text": q.css('.text::text').get(), "author": q.css('.author::text').get()}
        nxt = response.css('.next a::attr(href)').get()
        if nxt:
            yield response.follow(nxt)

result = QuotesSpider().start()        # QuotesSpider(crawldir="./chk") → Ctrl+C pauses, re-run resumes
result.items.to_json("out.json")
```

## Version compatibility

The 0.5 migration removed `DynamicFetcher` and the CLI `stealthy-fetch` command.
Use `StealthyFetcher` and `scrapling extract fetch`. Older runtimes need upgrading
before using this Skill; newer breaking releases need their own compatibility check.
See the [official migration guide](https://scrapling.readthedocs.io/en/latest/migrating-to-v0.5.html).

Scrapling's optional `scrapling mcp` is a separate server. TaroBot's Search MCP
uses Brave/Tavily for `web_search`/`web_extract`; installing this Skill does not
register a Scrapling MCP. If someone explicitly configured that server, discover
its actual tools before using them rather than reusing old names.

## Pitfalls
- **Browser dependency**: 0.5 uses Patchright Chromium. Run `scrapling install` in the installed venv if its browser is missing; a Skill file alone does not install it.
- **Timeouts**: browser requests are in **milliseconds** (default 30000); HTTP `Fetcher` is in **seconds**.
- **Cloudflare**: `--solve-cloudflare` adds 5–15s — only enable when needed.
- **Resource use**: stealth/dynamic run a real (headless) browser — don't run many at once; for plain pages use HTTP `get`.
- **Python**: 3.10+.

---
*Fetching reference adapted from the Hermes-agent `scrapling` skill (MIT, FEUAZUR); the tool-routing section above is TaroBot-specific.*

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.