🕷️ 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
feat(DynamicSession): Improve stealth mode
Karim shoair967c0956a1f5
diff --git a/scrapling/engines/_browsers/_config_tools.py b/scrapling/engines/_browsers/_config_tools.pyindex 7f60efc..96b7f41 100644--- a/scrapling/engines/_browsers/_config_tools.py+++ b/scrapling/engines/_browsers/_config_tools.py@@ -30,7 +30,6 @@ def _compiled_stealth_scripts():"webdriver_fully.js","window_chrome.js","navigator_plugins.js",- "pdf_viewer.js","notification_permission.js","screen_props.js","playwright_fingerprint.js",diff --git a/scrapling/engines/toolbelt/bypasses/pdf_viewer.js b/scrapling/engines/toolbelt/bypasses/pdf_viewer.jsdeleted file mode 100644index 4c88702..0000000--- a/scrapling/engines/toolbelt/bypasses/pdf_viewer.js+++ /dev/null@@ -1,5 +0,0 @@-// PDF viewer enabled-// Bypasses `pdfIsDisabled` test in creepsjs's 'Like Headless' sections-Object.defineProperty(navigator, 'pdfViewerEnabled', {- get: () => true,-});\ No newline at end of filediff --git a/scrapling/engines/toolbelt/bypasses/playwright_fingerprint.js b/scrapling/engines/toolbelt/bypasses/playwright_fingerprint.jsindex bfba6be..e1b959d 100644--- a/scrapling/engines/toolbelt/bypasses/playwright_fingerprint.js+++ b/scrapling/engines/toolbelt/bypasses/playwright_fingerprint.js@@ -1,2 +1,3 @@// Remove playwright fingerprint => https://github.com/microsoft/playwright/commit/c9e673c6dca746384338ab6bb0cf63c7e7caa9b2#diff-087773eea292da9db5a3f27de8f1a2940cdb895383ad750c3cd8e01772a35b40R915-delete __pwInitScripts;\ No newline at end of file+delete window.__pwInitScripts;+delete window.__playwright__binding__;\ No newline at end of file