🕷️ 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 stealth of dynamic browser by pinning Chrome's UA version
Karim shoair85b327a598ee
diff --git a/scrapling/engines/toolbelt/fingerprints.py b/scrapling/engines/toolbelt/fingerprints.pyindex c006ec2..7b551d8 100644--- a/scrapling/engines/toolbelt/fingerprints.py+++ b/scrapling/engines/toolbelt/fingerprints.py@@ -55,13 +55,13 @@ def generate_headers(browser_mode: bool = False) -> Dict:# In the browser mode, we don't care about anything other than matching the OS and the browser type with the browser we are using,# So we don't raise any inconsistency red flags while websites fingerprinting usos_name = get_os_name()- browsers = [Browser(name="chrome", min_version=130)]+ browsers = [Browser(name="chrome", min_version=141, max_version=141)]if not browser_mode:os_name = ("windows", "macos", "linux")browsers.extend([- Browser(name="firefox", min_version=130),- Browser(name="edge", min_version=130),+ Browser(name="firefox", min_version=140),+ Browser(name="edge", min_version=140),])return HeaderGenerator(browser=browsers, os=os_name, device="desktop").generate()