From 7f330efc52a3ffd14d698b70bdb11894cb248a89 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Sun, 24 Nov 2024 13:44:16 +0200 Subject: [PATCH] Turn-off the `hide_canvas` option by default --- scrapling/engines/pw.py | 2 +- scrapling/fetchers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,