diff --git a/docs/fetching/dynamic.md b/docs/fetching/dynamic.md index 066d12c..745f867 100644 --- a/docs/fetching/dynamic.md +++ b/docs/fetching/dynamic.md @@ -93,6 +93,7 @@ Scrapling provides many options with this fetcher and its session classes. To ma | stealth | Enables stealth mode; you should always check the documentation to see what the stealth mode does currently. | ✔️ | | real_chrome | If you have a Chrome browser installed on your device, enable this, and the Fetcher will launch and use an instance of your browser. | ✔️ | | locale | Set the locale for the browser if wanted. The default value is `en-US`. | ✔️ | +| timezone_id | Set the timezone for the browser if wanted. | ✔️ | | cdp_url | Instead of launching a new browser instance, connect to this CDP URL to control real browsers through CDP. | ✔️ | | user_data_dir | Path to a User Data Directory, which stores browser session data like cookies and local storage. The default is to create a temporary directory. **Only Works with sessions** | ✔️ | | extra_flags | A list of additional browser flags to pass to the browser on launch. | ✔️ | diff --git a/scrapling/engines/_browsers/_controllers.py b/scrapling/engines/_browsers/_controllers.py index a338c93..9e48675 100644 --- a/scrapling/engines/_browsers/_controllers.py +++ b/scrapling/engines/_browsers/_controllers.py @@ -77,6 +77,7 @@ class DynamicSession(DynamicSessionMixin, SyncSession): :param wait_selector: Wait for a specific CSS selector to be in a specific state. :param init_script: An absolute path to a JavaScript file to be executed on page creation for all pages in this session. :param locale: Set the locale for the browser if wanted. The default value is `en-US`. + :param timezone_id: Set the timezone for the browser if wanted. :param wait_selector_state: The state to wait for the selector given with `wait_selector`. The default state is `attached`. :param stealth: Enables stealth mode, check the documentation to see what stealth mode does currently. :param real_chrome: If you have a Chrome browser installed on your device, enable this, and the Fetcher will launch an instance of your browser and use it. @@ -212,6 +213,7 @@ class AsyncDynamicSession(DynamicSessionMixin, AsyncSession): :param wait_selector: Wait for a specific CSS selector to be in a specific state. :param init_script: An absolute path to a JavaScript file to be executed on page creation for all pages in this session. :param locale: Set the locale for the browser if wanted. The default value is `en-US`. + :param timezone_id: Set the timezone for the browser if wanted. :param wait_selector_state: The state to wait for the selector given with `wait_selector`. The default state is `attached`. :param stealth: Enables stealth mode, check the documentation to see what stealth mode does currently. :param real_chrome: If you have a Chrome browser installed on your device, enable this, and the Fetcher will launch an instance of your browser and use it.