scrapfly-sdk
Async Rust client for the Scrapfly web scraping, screenshot, extraction and crawler APIs. Mirrors the shape of the official Python, TypeScript and Go SDKs.
- Single shared
reqwest::ClientwithrustlsTLS - Typed builders for every config (
ScrapeConfig,ScreenshotConfig,ExtractionConfig,CrawlerConfig) - High-level
Crawlwrapper withstart/wait/urls/read/warc/har concurrent_scrapereturns aStreampowered bybuffer_unordered- Categorized
ScrapflyErrorwith sentinel variants for rate-limit, upstream 4xx/5xx, crawler failure/cancel/timeout, etc. - Zero
unwrap()/expect()in library code - No HTML parser bundled — bring your own (e.g.
scraper,kuchiki)
Quick start
use ;
async
See examples/ for screenshot, extraction, crawler lifecycle and concurrent scrape.
MSRV: 1.75. See https://scrapfly.io/docs for the full API reference.