← Back to Leaderboard
SD4Vinci

D4Vinci/Scrapling

Python HTTP and browser crawlers that turn websites into RAG-ready Markdown

Engineering Health (Methodology)
A+ · 98/100
Maintenance Activity
● Updated today
Latest Release
v0.5.2
Commercial License Check
BSD-3-Clause · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity20/20
DockerMCPSelf-HostedCLIAPI
Total Stars
★ 107,904
24h Growth
+118
7d Growth
+1,784
Forks
11,370

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

D4Vinci/Scrapling Star History (2024-10-13 - 2026-12-04) ALL-TIME STAR HISTORY (2024-10 – 2026-12) +107.9k in 782d · avg +138/day 113.9k 57k 0 2024-10-13: ★ 82024-11-30: ★ 1,4732025-01-18: ★ 1,7582025-03-08: ★ 2,6252025-04-26: ★ 2,8182025-06-14: ★ 5,1942025-08-02: ★ 6,1592025-09-20: ★ 7,0722025-11-08: ★ 7,8342025-12-27: ★ 8,0612026-02-14: ★ 8,7092026-04-04: ★ 33,7352026-05-23: ★ 52,6722026-07-11: ★ 68,1682026-08-29: ★ 76,4532026-10-17: ★ 87,8442026-12-04: ★ 107,904 ★ 107.9k 2024-10 2025-11 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Scrapling is a Python acquisition and extraction layer for RAG, not a database. Fetcher handles direct HTTP requests, while Chromium-backed fetchers render and interact with JavaScript pages. The returned page exposes a common DOM extraction interface across fetch paths. Persistent sessions retain cookies and browser state, and a spider can route requests by session ID so only pages that need rendering incur browser overhead.

The crawler follows a Scrapy-like model: start_urls seeds requests, and asynchronous parse callbacks yield records or follow-up requests through Request and Response objects. Python and the CLI provide direct access; MCP exposes fetching and browser operations to agents. CDP is a separate integration surface for connecting to an existing browser. The package builds with setuptools and wheel; the Docker build uses uv and installs Chromium through Patchright.

Key Capabilities & Differentiators

Extraction combines CSS, XPath, text, and regex queries with DOM traversal, generated selectors, and similarity-based element relocation. Adaptive matching can recover from some layout changes, but a match is not proof that the field still has the same meaning. Browser sessions can retain state and record background API responses. page.markdown() and the ContentSpider template produce Markdown without an LLM, leaving document chunking and retrieval to downstream components.

For batch collection, spiders support configurable concurrency, per-domain delays, AutoThrottle with Retry-After handling, and optional robots.txt enforcement. crawldir preserves pending requests and seen URLs for restart, while development mode replays saved responses to test parsing without fetching again. Sitemap, link-following, and feed templates cover common discovery patterns. Jobs can stream records as they arrive or export JSON, JSONL, CSV, or XML.

Trade-offs & Limitations

The strongest reason to choose Scrapling over a standalone BeautifulSoup-style parser is that one interface spans acquisition, parsing, and crawling. If an existing Scrapy setup already handles scheduling and downloads well, adopting only the parser through scrapling_response is a smaller change than migrating spiders. HTTP-first routing avoids paying Chromium's CPU and memory cost on static HTML; browser-backed requests add rendering coverage but make throughput more sensitive to page complexity and session concurrency.

Validate adaptive extraction against known results: a plausible but wrong match can quietly contaminate a RAG corpus. Likewise, a resumable crawl directory is not a document store or retrieval index, and Markdown output does not replace deduplication or source tracking. Keep those responsibilities downstream. BSD-3-Clause governs use and redistribution of the software, not permission to collect site content; configure crawl limits and authorization for each source.

Hardware & Deployment Guide

For static pages, start with the Python API or CLI and a direct HTTP fetcher. Add Chromium only where rendering or interaction is required. The supplied Dockerfile uses python:3.12-slim-trixie, syncs Python extras with uv, and installs Chromium and its system dependencies through Patchright. A browser can also run separately and be reached over CDP. HTML parsing and Markdown conversion require no model inference; CPU and memory sizing should be based on rendered page complexity and concurrent browser sessions, not VRAM.

For a self-hosted agent integration, MCP supports HTTP transport with authentication options. Restrict its network reach and protect persisted login state; store crawl state on persistent storage if restarts must survive container replacement. The v0.5 line introduced broad interface changes, v0.5.1 expanded browser interaction and remote sessions, and v0.5.2 notes breaking changes for spiders, HTTP uploads, and custom browser paths. Pin the deployed version and regression-test those paths before upgrading.

Fetching: Direct HTTP and Chromium-backed sessions can share one spider, with requests routed by session ID.
Extraction: CSS, XPath, text, and regex selectors share a DOM API; similarity matching can relocate elements after layout changes.
Crawl control: Per-domain throttling and Retry-After handling complement crawldir checkpoints and disk-backed response replay.
RAG ingestion: page.markdown() converts individual pages, while ContentSpider builds a site-wide corpus without LLM inference.
Outputs: Streaming yields items during a crawl, and built-in exporters write JSON, JSONL, CSV, or XML.
Integration: Python and CLI entry points support direct use; MCP adds agent access, and CDP connects to a separately running browser.
Best For

Teams turning authorized documentation sites, help centers, or feeds into structured records or Markdown, especially when static and JavaScript-rendered pages must share one crawl pipeline.

Skip If

You need an end-to-end RAG database or retrieval service, or a simple parser already covers your static pages.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerMCPSelf-HostedCLI
pip install "scrapling[shell]"
scrapling shell

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
Scrapling ★107.9k+1.8kPythonBSD-3-ClausePython HTTP and browser crawlers that turn websites into RAG-ready Markdown
crawl4ai88.5k+408PythonApache-2.0Async browser crawler that turns web pages into Markdown and JSON for RAG
firecrawl216.5k+4.6kTypeScriptAGPL-3.0Local and hosted web ingestion that turns sites into RAG-ready Markdown
mempalace60.8k+120PythonMITLocal-first RAG memory for retrieving verbatim project and conversation history

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/D4Vinci/Scrapling.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

D4Vinci/Scrapling Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about Scrapling

Where does Scrapling fit in an existing RAG or Scrapy pipeline?

Use Fetcher for individual pages or ContentSpider for a site-wide Markdown corpus. Pass the output downstream with the source URL and crawl metadata, then handle deduplication, chunking, embeddings, indexing, and retrieval separately. If Scrapy already handles fetching, scrapling_response lets you adopt Scrapling’s parser in existing callbacks.

Does it need a GPU, and how should I size crawl workers?

There is no model to load or GPU/VRAM requirement for HTTP fetching, parsing, or Markdown conversion. For browser workers, size CPU and memory against representative JavaScript-heavy pages at the intended concurrency. Also budget disk for Chromium, crawl checkpoints, and development-mode response caches if you use them.

Can we self-host Scrapling commercially?

BSD-3-Clause permits commercial self-hosting and redistribution subject to its notice and non-endorsement conditions. It does not grant rights to the content you collect. Check site permissions, terms, and data-handling obligations separately; enable robots.txt handling where appropriate and protect saved browser state as credential material.

When should I choose Scrapling over Scrapy or a standalone parser?

Keep Scrapy when its crawl pipeline already works and you only need different parsing behavior. Choose Scrapling when HTTP and browser-backed requests need to share a spider and the same extraction interface. For stable static pages, a standalone parser may be simpler than adopting the entire framework.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining D4Vinci/Scrapling? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature D4Vinci/Scrapling on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare