NewsCrawler.org

Scrapling: a Python web scraping framework from single requests to full-scale crawls

Scrapling is a Python web scraping framework that combines fast HTTP requests, stealth browsers, parsing, and concurrent crawling in a single library. It can fetch static pages, render JavaScript, interact with websites, and extract data from the API calls behind them. The project gained 1658 GitHub stars in a single day. It can be used from Python code, the terminal, or an AI agent through its MCP[1] server and an Agent Skill.

Parsing covers CSS selectors, XPath[2], text and regex search, adaptive element tracking, similar-element matching, and clean Markdown output. Spiders[3] follow a Scrapy-like API with start_urls and async parse callbacks, and concurrent crawling is configured through concurrency limits, per-domain throttling, and download delays. A single spider can combine persistent HTTP sessions with stealth headless browsers[4], routing requests to sessions by ID, and its fetchers handle Cloudflare Turnstile and interstitial pages. Crawls can be stopped with Ctrl+C and resumed from a saved directory, streamed item by item with real-time statistics, and exported to JSON, JSONL, CSV, or XML. Blocked requests are detected and retried automatically, and the AutoThrottle feature tunes each domain's delay from how fast the site responds, doubling it (or honoring Retry-After) when blocking or rate-limiting starts and speeding back up afterwards.

Read the original github.com

Sources

  • GitHub Trending

    D4Vinci/Scrapling

    1,655 stars today98,433 stars10,309 forks

First seen: Читать по-русски

Open as a page