Proxy in Python

The Proxy implementation. class selenium.webdriver.common.proxy.Proxy(raw=None) Bases: object

Proxy contains information about proxy type and necessary proxy settings.

__init__(raw=None) Creates a new Proxy. Args: raw: raw proxy data. If None, default class values are used. add_to_capabilities(capabilities) Adds proxy information as capability in specified capabilities. Args:

capabilities:

The capabilities to which proxy will be added. auto_detect Returns autodetect setting.

autodetect = False

ftpProxy = '' ftp_proxy Returns ftp proxy setting.

httpProxy = ''

http_proxy Returns http proxy setting. noProxy = ''

no_proxy

Returns noproxy setting. proxyAutoconfigUrl = '' proxyType = {'ff_value': 6, 'string': 'UNSPECIFIED'} proxy_autoconfig_url Returns proxy autoconfig url setting.

proxy_type

Returns proxy type as ProxyType.

socksPassword = ''

socksProxy = ''

socksUsername = ''

socks_password Returns socks proxy password setting.

socks_proxy

Returns socks proxy setting. socks_username Returns socks proxy username setting. sslProxy = ''

ssl_proxy

Returns https proxy setting.

class selenium.webdriver.common.proxy.ProxyType

Set of possible types of proxy. Each proxy type has 2 properties: ‘ff_value’ is value of Firefox profile preference, ‘string’ is id of proxy type. classmethod load(value)

  • AUTODETECT = {'ff_value': 4, 'string': 'AUTODETECT'}
  • DIRECT = {'ff_value': 0, 'string': 'DIRECT'}
  • MANUAL = {'ff_value': 1, 'string': 'MANUAL'}
  • PAC = {'ff_value': 2, 'string': 'PAC'}
  • RESERVED_1 = {'ff_value': 3, 'string': 'RESERVED1'}
  • SYSTEM = {'ff_value': 5, 'string': 'SYSTEM'}
  • UNSPECIFIED = {'ff_value': 6, 'string': 'UNSPECIFIED'}

class selenium.webdriver.common.proxy.ProxyTypeFactory Factory for proxy types. static make(ff_value, string)

You can also share knowledge by Adding a topic here


Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions