Repository navigation
Warning
v0.1.0 has a bug that exhausts memory when it fetches a PDF. Use v0.1.1 instead.
v0.1.0 は PDF を取得するとメモリを使い切る不具合があります。v0.1.1 を使ってください。
Installation and release packaging (#95, #104)
rustscrapling install obscurainstalls the pinned Obscura 0.2.7 (Linux
x86_64/ARM64, macOS, Windows x86_64) after checking its size and SHA-256.
It is found without--obscura-path:RUSTSCRAPLING_OBSCURA_PATH, then
this installation, thenPATH. A missing browser is a typed error that
names the command.scripts/install.sh(Linux x86_64) andscripts/install.ps1(Windows
x86_64) install a release binary without administrator rights, verified
againstSHA256SUMS, and then Obscura. They work once a release is
published.- Releases include a Windows x86_64 zip; the Windows build now runs on every
pull request and push tomain. install --dirwith a relative path records absolute paths, and archives
that unpack to more than 2 GiB are refused.- Fixed: the Windows build failed every HTTPS request, because it had no root
certificates to verify against. It now trusts the Windows certificate store
and Mozilla's roots (webpki-root-certs, CDLA-Permissive-2.0).
Acquisition, routing, and performance (decisions D-041 to D-060 in docs/DECISIONS.md)
- LimitBreak (
extensions/limitbreak/, migrated fromRustScrapling-LimitBreak28619e5) is now bundled as an opt-in mode, disabled by default with zero overhead when off (#106, #112, #47, #48, D-060). Enable with--limitbreakorRUSTSCRAPLING_LIMITBREAK=1and select--profile speed|reliability|low-load|researchacrossfetch,auto,daemon,mcp,crawl, andresearch; output JSON records the active state and profile. Playbook matching uses a pre-built index (PlaybookIndex), weighted proxy selection and reporting run natively in Rust withprivate_file(0600,O_NOFOLLOW, under$XDG_STATE_HOME/limitbreak/rather than/tmp), andchallenge_hookruns only when a challenge is detected (returning typed errors on failure).speed'sobey_robots = falseapplies only when explicitly selected. - Speculative HTTP + Browser hedged requests (
#93,#103) launch HTTP and
browser concurrently under a bounded concurrency cap on browser-learned or
re-probed hosts, returning the first usable result and cancelling the other. - Obscura is the default browser; Chrome is started only for pages that show
a Cloudflare challenge, and the headed tier likewise (#56, #71, D-041,
D-044). - Typed WAF vendor classification (
#66,#118) identifiesCloudflare,
DataDome,Akamai,PerimeterX,AwsWaf, andIncapsulaon
FetchError.waf_vendorand short-circuits unbypassable non-Cloudflare
blocks without launching Chrome. - A Cloudflare clearance that Chrome obtained is replayed over plain HTTP with
the same user agent (#78, #82, D-049, D-052) and scoped by(host, egress)
with proxy credentials redacted (#69, #119), so changing egress never replays
a mismatchedcf_clearancecookie. - The daemon learns the working tier per host, records per-request outcome
telemetry with D-041-constrained arm scoring in SQLite (#68, #120), and
re-probes from HTTP after a restart and every 10 minutes (#79, D-050). It
prestarts Chrome only when it has already learned a Cloudflare host (#99,
D-059) and reaps idle browser processes with configurable timeouts and
browsers_closed_idle/browser_idle_relaunchesstatus counters (#109,
#117). - Browser fetches run in a process pool that is recycled when its memory
grows (#76, D-047); Chrome stays in its owner's cgroup and exits with it
(#84, D-053). - Content waits and navigation readiness: a thin page is read once its content
appears (#77, D-048); a page reached by solving a challenge is read once it
is still (#88, D-056), with event-driven solver waits instead of fixed sleeps
(#99, D-059); and slow synchronousPage.navigatecalls probe live content
readiness before timing out (#85, #113). Cold Cloudflare fetches went from
about 22 s to about 7 s (upstream: 18.5 s on the same page). RUSTSCRAPLING_PUBLIC_ONLYrestricts fetches to public addresses (#58).metadata.languagereports the page language as BCP 47 (#55).- Published fair benchmark harness and results (
bench/fair,
bench/results/public, #94, #97, #111: 39 URLs x 8 tools x 5 runs;
RustScrapling 97.4% cold/warm vs. camoufox 91.3% and upstream
StealthyFetcher 87.2%) and GitHub Pages site (site/, #116).
Fixed since 2026-11-03
- Solved Cloudflare pages no longer confuse the status and body of a reused
tab (#64, D-043), and a challenge landing page that only loads Turnstile
counts as cleared (#86, #87, D-054, D-055). - The page monitor no longer stops when a child frame or worker detaches,
which had left warm Chrome tabs without lifecycle events (#89, D-057);
the solver reads a parsed landing page whose load event never fires
(#90, D-058). - The HTTP client no longer adds a referer of its own (#81, D-051).
Added
- CLI
install: Chrome for Testing into a per-user directory with pinned
SHA-256/size verification, staging extraction,--dry-run, mirrors and an
install record used by CLI and MCP (Plan C-05). - CLI
shell: interactive console with fetch shortcuts, five-page history,
selector/extraction commands and the upstreamCurlParserport
(uncurl/curl2fetcher) (Plan C-06). - CLI
mcp(stdio MCP server) and daemon-hostedsessioncommands keeping
browser/HTTP sessions alive across CLI processes. - MCP: exact upstream
tools/listcatalog with outputSchema validation; all
12browser_actions; upstream-identical ARIA snapshots andaria-ref
targets; Convertor-compatible content (ported markdownify); browser
fetch/session options; every upstream HTTP request argument and session
cookie jars. - Spider: rich requests (method/body/headers/cookies/priority/callback/meta/
dont_filter),on_errorandon_scraped_itemhooks, robots pacing,
AutoThrottle, Retry-After, private replay cache. - Verification: libFuzzer targets (HTML parsing, selectors, adaptive,
Markdown), CycloneDX SBOM with license audit, Chrome 153/155/156 E2E matrix
including headed session reuse, same-machine benchmarks against upstream,
threat model with regression-test mapping, release smoke script.
Changed
- Browser launches use upstream's effective arguments (Playwright switches,
ScraplingDEFAULT_ARGS+STEALTH_ARGS) with merged feature flags
(D-010, D-011). - External CDP endpoints must be loopback or listed in
RUSTSCRAPLING_CDP_ALLOWED_HOSTS(D-012).
Fixed
- Dropped clicks right after navigation in headed Chrome (PaintHolding).
- Adaptive
relocatedeadlock on a sibling-ratio cache miss (fuzzing). - CSS selector panic on a trailing backslash escape (fuzzing).
- CI real-Chrome test flake caused by the favicon request (Issue #1).
- State files are read with
O_NOFOLLOW.