mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 14:20:08 +01:00
detect_cloudflare_challenge(page, 'interstitial') matches the challenge on the page and stops matching once it clears, measured on ext.to (True then False), and on yggtorrent, nowsecure.nl and google.com, none of which carry a /cdn-cgi/challenge-platform/ script when cleared. So the custom marker set was unnecessary. The turnstile variant is not usable for this: nowsecure.nl embeds turnstile scripts on its normal page, so it reports a challenge even when cleared. Also adds PlaywrightTimeoutError to the retryable set. It is a different class from the builtin TimeoutError -- playwright's derives from its own Error -- so a Playwright timeout inside the solver escaped the loop and returned 408 without retrying. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TDMac4vGGcBhoUB5V6bvFK