GamiD PC
GamiD PC

Reputation: 27

How best to install a proxy for python selenium chrome

How to install a proxy for python selenium chrome http and socks5 with authentification by login and password?

Upvotes: 0

Views: 133

Answers (1)

misha
misha

Reputation: 126

You can use selenium-wire for this.

options = {
    'proxy': {
        'http': 'socks5://user:[email protected]:8888',
        'https': 'socks5://user:[email protected]:8888',
        'no_proxy': 'localhost,127.0.0.1'
    }
}
driver = webdriver.Chrome(seleniumwire_options=options)

Upvotes: 1

Related Questions