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

Making the type hints more accurate before update

Karim shoair088117441d7f
diff --git a/scrapling/engines/pw.py b/scrapling/engines/pw.py
index 6aa89ec..e49f622 100644
--- a/scrapling/engines/pw.py
+++ b/scrapling/engines/pw.py
@@ -27,11 +27,11 @@ class PlaywrightEngine:
page_action: Callable = do_nothing,
wait_selector: Optional[str] = None,
wait_selector_state: Optional[str] = 'attached',
- stealth: bool = False,
- hide_canvas: bool = False,
- disable_webgl: bool = False,
+ stealth: Optional[bool] = False,
+ hide_canvas: Optional[bool] = False,
+ disable_webgl: Optional[bool] = False,
cdp_url: Optional[str] = None,
- nstbrowser_mode: bool = False,
+ nstbrowser_mode: Optional[bool] = False,
nstbrowser_config: Optional[Dict] = None,
google_search: Optional[bool] = True,
extra_headers: Optional[Dict[str, str]] = None,