Skip to content

🕷️ 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

fix(controllers): Fix issue with adding stealth scripts

Karim shoair37e842b79605
diff --git a/scrapling/engines/_browsers/_controllers.py b/scrapling/engines/_browsers/_controllers.py
index b908026..1497a1d 100644
--- a/scrapling/engines/_browsers/_controllers.py
+++ b/scrapling/engines/_browsers/_controllers.py
@@ -281,7 +281,7 @@ class DynamicSession:
if self.stealth:
for script in _compiled_stealth_scripts():
- page.add_init_script(path=script)
+ page.add_init_script(script=script)
return self.page_pool.add_page(page)