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

Turn-off the `hide_canvas` option by default

Karim shoair7f330efc52a3
diff --git a/scrapling/engines/pw.py b/scrapling/engines/pw.py
index 78c1d39..32c336a 100644
--- a/scrapling/engines/pw.py
+++ b/scrapling/engines/pw.py
@@ -28,7 +28,7 @@ class PlaywrightEngine:
wait_selector: Optional[str] = None,
wait_selector_state: Optional[str] = 'attached',
stealth: bool = False,
- hide_canvas: bool = True,
+ hide_canvas: bool = False,
disable_webgl: bool = False,
cdp_url: Optional[str] = None,
nstbrowser_mode: bool = False,
diff --git a/scrapling/fetchers.py b/scrapling/fetchers.py
index 6594a68..1569c31 100644
--- a/scrapling/fetchers.py
+++ b/scrapling/fetchers.py
@@ -147,7 +147,7 @@ class PlayWrightFetcher(BaseFetcher):
self, url: str, headless: Union[bool, str] = True, disable_resources: bool = None,
useragent: Optional[str] = None, network_idle: Optional[bool] = False, timeout: Optional[float] = 30000,
page_action: Callable = do_nothing, wait_selector: Optional[str] = None, wait_selector_state: Optional[str] = 'attached',
- hide_canvas: bool = True, disable_webgl: bool = False, extra_headers: Optional[Dict[str, str]] = None, google_search: Optional[bool] = True,
+ hide_canvas: bool = False, disable_webgl: bool = False, extra_headers: Optional[Dict[str, str]] = None, google_search: Optional[bool] = True,
proxy: Optional[Union[str, Dict[str, str]]] = None,
stealth: bool = False,
cdp_url: Optional[str] = None,