Adaptive web scraping that survives site redesigns
Track layout changes automatically, get past anti-bot checks, and scale from a single page to a full crawl.

Suggested prompts
About this skill
Scrapling: Effortless Web Scraping for the Modern Web
Scrapling is a Python web-scraping framework built around a simple observation: most scraping code does not fail because fetching is hard, but because the web keeps changing. Selectors written against last month's markup break silently after a redesign, anti-bot layers reject plain HTTP clients, and the moment a job grows from one page to a whole site you end up bolting a crawler framework onto a parser that was never designed for it. Scrapling tries to collapse those three problems — fragile parsing, hostile fetching, and scaling — into one library.
The parsing layer is where its approach differs most. Alongside ordinary CSS, XPath, text and regex selection, it offers adaptive element tracking and similar-element matching, so element location can be re-learned when a page's structure shifts instead of being rewritten by hand each time. Extraction output can also come back as clean Markdown rather than raw HTML.
On the fetching side, Scrapling spans a spectrum. Fast HTTP requests handle static pages; stealth browsers render JavaScript, hold persistent sessions, and interact with the page. Built-in handling covers Cloudflare Turnstile and interstitial challenges, and background API capture lets you read the JSON responses behind the interface rather than scraping the rendered DOM. You pick the lightest fetcher that actually works for a target.
Scaling is handled by spiders: concurrent crawlers with reusable sessions, proxy rotation, automatic retries, AutoThrottle, pause/resume, streaming, ready-made templates and built-in exports. The same library therefore covers a one-off request and a multi-session site-wide crawl, and a spider definition can be short enough to read in a single screen.
Usage has four faces. From Python, you start with a fetcher call such as Fetcher.get(url) and then select with page.css(...); a spider subclasses a Spider class, declares name and start_urls, and yields dictionaries from an async parse callback. From a terminal, there is a CLI and an interactive shell. From an AI agent, there is an MCP server plus an Agent Skill, so an agent can browse and extract without you writing the glue. Docs are organised around selection methods, fetchers, spiders, proxy rotation, CLI and MCP.
Inputs are URLs — a single one, or start_urls for a crawl — plus your selection expressions and, for spiders, the parse logic. Outputs are the extracted values themselves: strings and lists from selections, dictionaries yielded as items, and whole result sets exported to JSON, JSONL, CSV or XML, or emitted as clean Markdown for a full site.
Dependencies are modest but real: it is a Python package distributed on PyPI with a published range of supported Python versions, and a Docker image is available if you would rather not manage an environment locally. Browser-based fetching implies a real browser engine in your environment, which is the heavier part of the footprint; the HTTP fetchers avoid it entirely.
A few honest caveats. Turnstile and interstitial handling is a capability, not a guarantee — protections change, and a target can still refuse you. Adaptive tracking reduces selector maintenance; it does not make a scraper immune to redesigns. Proxy rotation only works with proxies you supply, retries and AutoThrottle are politeness tools rather than immunity from rate limits, and pause/resume belongs to the spider workflow rather than single fetches. Most importantly, stealth capability is not permission: whether you may scrape a given site, and how fast, remains your call and the site's terms.
Original: https://github.com/D4Vinci/Scrapling
