S
S
SHADRIN2021-03-23 01:28:29
Python
SHADRIN, 2021-03-23 01:28:29

How to run selenium with proxies?

Hello everyone, who knows how to run selenium with a proxy?

I’ll say right away using manifest and

options.add_argument(f'--proxy-server=62.113.115.8:5333')


Also used this
prox = Proxy()
prox.proxy_type = ProxyType.MANUAL
prox.http_proxy = "ip_addr:port"
prox.socks_proxy = "ip_addr:port"
prox.ssl_proxy = "ip_addr:port"

capabilities = webdriver.DesiredCapabilities.CHROME
prox.add_to_capabilities(capabilities)


all this does not work, and with the manifest and capabilities it opens but the proxy does not substitute, what to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SHADRIN, 2021-03-23
@shadrin_ss

As for the answer, everything turned out to be very simple, you need either seleniumwire, there is nowhere easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question