I am currently trying to use user:pass proxies in selenium in firefox, but the solution in the docs is not working
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType
myProxy = "host:port"
Proxy({
'proxyType': ProxyType.MANUAL,
'httpProxy': myProxy,
'ftpProxy': myProxy,
'sslProxy': myProxy,
'noProxy': '' # set this value as desired
})
driver = webdriver.Firefox(r'''C:\Users\ben_s\Desktop\geckodriver''',proxy=proxy)
driver.get("https://www.ipchicken.com/")
Is there a way this code could be tweaked to make the proxy work? Or is there an entierly different method? Thanks