You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unclecode#1375 : refactor(proxy) Deprecate 'proxy' parameter in BrowserConfig and enhance proxy string parsing
- Updated ProxyConfig.from_string to support multiple proxy formats, including URLs with credentials.
- Deprecated the 'proxy' parameter in BrowserConfig, replacing it with 'proxy_config' for better flexibility.
- Added warnings for deprecated usage and clarified behavior when both parameters are provided.
- Updated documentation and tests to reflect changes in proxy configuration handling.
Copy file name to clipboardExpand all lines: docs/md_v2/api/parameters.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ browser_cfg = BrowserConfig(
23
23
|**`headless`**|`bool` (default: `True`) | Headless means no visible UI. `False` is handy for debugging. |
24
24
|**`viewport_width`**|`int` (default: `1080`) | Initial page width (in px). Useful for testing responsive layouts. |
25
25
|**`viewport_height`**|`int` (default: `600`) | Initial page height (in px). |
26
-
|**`proxy`**|`str` (default: `None`) | Single-proxy URL if you want all traffic to go through it, e.g. `"http://user:pass@proxy:8080"`. |
26
+
|**`proxy`**|`str` (deprecated) | Deprecated. Use `proxy_config` instead. If set, it will be auto-converted internally.|
27
27
|**`proxy_config`**|`dict` (default: `None`) | For advanced or multi-proxy needs, specify details like `{"server": "...", "username": "...", ...}`. |
28
28
|**`use_persistent_context`**|`bool` (default: `False`) | If `True`, uses a **persistent** browser context (keep cookies, sessions across runs). Also sets `use_managed_browser=True`. |
29
29
|**`user_data_dir`**|`str or None` (default: `None`) | Directory to store user data (profiles, cookies). Must be set if you want permanent sessions. |
0 commit comments