D4Vinci/Scrapling

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

What it solves

Scrapling addresses the fragility and complexity of web scraping. It solves the problem of scrapers breaking when website designs change, the difficulty of bypassing modern anti-bot systems (like Cloudflare Turnstile), and the overhead of scaling from a single request to a massive, concurrent crawl.

How it works

Scrapling provides a comprehensive toolkit that combines fetching, parsing, and crawling:

  • Adaptive Parsing: It uses similarity algorithms to track and relocate elements automatically when a website's structure updates, reducing the need for manual selector updates.
  • Stealthy Fetching: It includes specialized fetchers (StealthyFetcher, DynamicFetcher) that spoof browser fingerprints, impersonate TLS, and handle browser automation to bypass bot detection.
  • Spider Framework: A Scrapy-like API allows users to define spiders with async callbacks, concurrent request limits, and automatic proxy rotation.
  • AutoThrottle: The system dynamically adjusts crawl speeds based on server response times and backs off automatically when rate-limiting is detected.
  • Session Management: It manages cookies and state across requests and supports DNS-over-HTTPS to prevent leaks.

Who it’s for

It is designed for web scrapers and data engineers who need to collect data from modern, dynamic websites at scale while minimizing maintenance and avoiding blocks.

Highlights

  • Adaptive Scraping: Automatically finds elements even after website design changes.
  • Anti-Bot Bypass: Built-in capabilities to handle Cloudflare Turnstile and other bot protections.
  • Full-Scale Crawling: Supports concurrent crawls, pause/resume checkpoints, and real-time streaming of results.
  • Flexible Fetching: Supports standard HTTP, headless browsers (Playwright/Chrome), and remote browser connections via CDP.
  • API Capture: Can capture background XHR/fetch responses to extract data without reverse-engineering APIs.
  • Ready-made Templates: Includes specialized spiders for Sitemaps, XML/CSV feeds, and Shopify stores.

Related

  • Project
  • Project
  • Project
  • Project
  • Project