Reputation: 27
How to install a proxy for python selenium chrome http and socks5 with authentification by login and password?
Upvotes: 0
Views: 133
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