Proxy Settings#
ProxySettings
#
Class to configure the proxy as used in BrowserSettings
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ip | str | IP address of the proxy server. Should be an IPv4 address, e.g. | required |
port | int | Port number of the proxy server, e.g. | required |
type | ProxyProtocol | Type of proxy protocol. | HTTP |
username | str | None | Username for the proxy server. | None |
password | str | None | Password for the proxy server. | None |
Example
How to set a proxy server with a basic URL:
ProxyProtocol
#
Class to define the type of proxy protocol as used in ProxySettings
.
Attributes:
Name | Type | Description |
---|---|---|
ProxyProtocol.HTTP | Enum | Use HTTP proxy. |
ProxyProtocol.HTTPS | Enum | Use HTTPS proxy. |
ProxyProtocol.SOCKS4 | Enum | Use SOCKS4 proxy. |
ProxyProtocol.SOCKS5 | Enum | Use SOCKS5 proxy. |
Example
How to set a different proxy protocol than the default HTTP
: