🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
fix: improve regex precision for Cloudflare challenge detection
RinZ27aa90dda43992
diff --git a/scrapling/engines/_browsers/_stealth.py b/scrapling/engines/_browsers/_stealth.pyindex 3c9ea58..fe71865 100644--- a/scrapling/engines/_browsers/_stealth.py+++ b/scrapling/engines/_browsers/_stealth.py@@ -22,7 +22,7 @@ from scrapling.engines._browsers._types import StealthSession, StealthFetchParamfrom scrapling.engines._browsers._base import SyncSession, AsyncSession, StealthySessionMixinfrom scrapling.engines._browsers._validators import validate_fetch as _validate, StealthConfig-__CF_PATTERN__ = re_compile("challenges.cloudflare.com/cdn-cgi/challenge-platform/.*")+__CF_PATTERN__ = re_compile(r"^https?://challenges\.cloudflare\.com/cdn-cgi/challenge-platform/.*")class StealthySession(SyncSession, StealthySessionMixin):