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 async adding stealth scripts

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