i have an issue with the selenium, i want to set proxy for my driver but it dosent work. what is the problem?
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType
PROXY = "51.15.78.38"
proxy = Proxy({
'proxyType': ProxyType.MANUAL,
'httpProxy': PROXY,
'ftpProxy': PROXY,
'sslProxy': PROXY,
'noProxy': ''
})
driver = webdriver.Firefox(service=FirefoxService(GeckoDriverManager().install()),
proxy=proxy)
driver.get('https://whatismyipaddress.com/')
any hint will be helpful.
when i go to the https://whatismyipaddress.com/ my ip address dosent change!
Proxy port is missing. If your port is 8080, code should be:
Also, this has been deprecated, current approach using Options would be: