How d4vinci/scrapling works
Scrapling is a web-scraping framework: users fetch static or browser-rendered pages, parse and extract content, or scale the same work into concurrent spiders with session management and exports. It also exposes CLI and AI-agent tooling, plus a Scrapy integration. The graph preserves these documented product branches; source excerpts and the SOURCE INDEX support the principal internal crawler and fetch paths, while some capability links rely on README statements because their implementation was not sampled.
Components 24
Fetching and Browsers
- Fetcher API
scrapling/fetchers/__init__.py - HTTP Fetchers
scrapling/fetchers/requests.py - Static Engine
scrapling/engines/static.py - Stealth Fetchers
scrapling/fetchers/stealth_chrome.py - Browser Engine
scrapling/engines/_browsers/_base.py - Proxy Rotation
scrapling/engines/toolbelt/proxy_rotation.py
Parsing and Extraction
- Scrape Response
scrapling/engines/toolbelt/custom.py - Parser
scrapling/parser.py - Adaptive Storage
scrapling/core/storage.py - Markdown Output
scrapling/core/shell.py
Crawling and Export
- Spider
scrapling/spiders/spider.py - Crawler Engine
scrapling/spiders/engine.py - Crawl Requests
scrapling/spiders/request.py - Session Manager
scrapling/spiders/session.py - Scheduler
scrapling/spiders/scheduler.py - Crawl Controls
scrapling/spiders - Crawl Results
scrapling/spiders/result.py - Spider Templates
scrapling/spiders/templates - Data Exports
scrapling/spiders/result.py
User Interfaces
- CLI and Shell
scrapling/cli.py - AI MCP Server
scrapling/core/ai/server.py - Scrapy Integration
scrapling/integrations/scrapy.py
Other components
- Scraper
- Websites
Connections 28
- Scraper → Fetcher API: calls
- Fetcher API → HTTP Fetchers: routes to
scrapling/fetchers/__init__.py - Fetcher API → Stealth Fetchers: routes to
scrapling/fetchers/__init__.py - HTTP Fetchers → Static Engine: uses
scrapling/fetchers/requests.py - Stealth Fetchers → Browser Engine: uses
scrapling/fetchers/stealth_chrome.py - Static Engine → Websites: requests pages
- Browser Engine → Websites: renders pages
- Fetcher API → Proxy Rotation: offers
- HTTP Fetchers → Scrape Response: returns
scrapling/fetchers/requests.py - Stealth Fetchers → Scrape Response: returns
scrapling/fetchers/stealth_chrome.py - Scrape Response → Parser: supports extraction
scrapling/engines/toolbelt/custom.py - Parser → Adaptive Storage: stores adaptive data
scrapling/parser.py - Parser → Markdown Output: formats content
scrapling/core/shell.py - Scraper → Spider: defines crawl
- Spider → Crawler Engine: starts
scrapling/spiders/spider.py - Crawler Engine → Scheduler: dispatches requests
scrapling/spiders/engine.py - Crawler Engine → Session Manager: fetches through
scrapling/spiders/engine.py - Crawler Engine → Crawl Requests: processes
scrapling/spiders/engine.py - Session Manager → Crawl Requests: reads
scrapling/spiders/session.py - Session Manager → Static Engine: uses
scrapling/spiders/session.py - Crawler Engine → Crawl Controls: coordinates
scrapling/spiders/engine.py - Crawler Engine → Crawl Results: collects
scrapling/spiders/engine.py - Spider → Spider Templates: supports reusable crawlers
scrapling/spiders/templates/sitemap.py - Crawl Results → Data Exports: exports
scrapling/spiders/result.py - Scraper → CLI and Shell: runs commands
- Scraper → AI MCP Server: uses agent tools
- AI MCP Server → Fetcher API: browses and extracts
scrapling/core/ai/server.py - Scraper → Scrapy Integration: integrates