agentleFS
amanning3390amanning3390/hermeshub/skills/scrapling/SKILL.md

scrapling

Skill48 starsChanged 5 months agoMITView on GitHub

Undetectable, adaptive, high-performance Python web data extraction. Automatically survives website structure changes, bypasses anti-bot systems (Cloudflare, WAFs), and outperforms BeautifulSoup/Scrapy. Includes stealth browser fetching, CSS/XPath selectors, CLI, interactive shell, and MCP AI server integration.

  • Installs packages

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Scrapling

Undetectable, adaptive, high-performance Python library for web data extraction. The first scraping library that automatically learns from website changes and survives structure updates.

When to Use

  • Extracting data from websites that change their HTML structure frequently
  • Bypassing anti-bot protections (Cloudflare Turnstile, WAFs, fingerprinting)
  • High-performance web data collection at scale
  • Replacing brittle BeautifulSoup/Scrapy selectors with adaptive element tracking
  • AI-assisted data extraction via the built-in MCP server (Claude/Cursor integration)
  • Interactive web exploration and debugging via the CLI shell

How It Works

Scrapling combines three capabilities:

  1. Smart Fetching — Three fetcher tiers for different protection levels:
    • Fetcher — Fast HTTP with TLS fingerprinting and stealth headers
    • StealthyFetcher — Modified Firefox with fingerprint spoofing, bypasses Cloudflare
    • DynamicFetcher — Full Playwright browser automation in stealth mode
  2. Adaptive Parsing — Tracks elements via similarity algorithms. When a website changes its structure, Scrapling automatically relocates the elements you need instead of breaking.
  3. Developer Tools — Interactive IPython shell, CLI extraction commands, curl-to-Scrapling conversion, and an MCP server for AI agent integration.

Quick Start

pip install "scrapling[all]" && scrapling install
from scrapling.fetchers import StealthyFetcher

url = 'https://example.com'
page = StealthyFetcher.get(url, headless=True)  # Adaptive stealth fetching
products = page.css('.product', adaptive=True)   # Survives site changes

for product in products:
    print(product.css_first('.title').text)
    print(product.css_first('.price').text)

Features

  • Adaptive element tracking — Auto-relocates elements after site structure changes via similarity algorithms
  • Three fetcher tiers — Static HTTP, stealth Firefox, full Playwright browser automation
  • Anti-bot bypass — Defeats Cloudflare Turnstile, WAFs, TLS fingerprinting, and browser detection
  • Blazing fast — Outperforms Parsel, Scrapy, and BeautifulSoup in benchmarks
  • CSS + XPath selectors — Plus text/regex search, BeautifulSoup-style navigation, auto-selector generation
  • Async support — All fetchers support async/await
  • Persistent sessions — FetcherSession, StealthySession, DynamicSession (sync and async)
  • Interactive shell — scrapling shell for live exploration, curl conversion, browser previews
  • CLI extraction — scrapling extract get URL output.md --css-selector
  • MCP server — AI integration for Claude, Cursor, and other MCP-compatible agents
  • Docker ready — docker pull pyd4vinci/scrapling (includes all browsers)

Performance

TestScraplingBeautifulSoupSpeedup
Text extraction (5k elements)1.92ms1283ms~668x
Element similarity matching1.87msN/A—

Installation Options

pip install scrapling                     # Core parser only
pip install "scrapling[fetchers]"         # + browser fetchers
scrapling install                         # Install browser engines
pip install "scrapling[all]"              # Everything

Source

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.