Does anyone have any working code for python selenium, firefox, proxy server?
There are many methods that are described on various solutions but none of them seem to work.
I'm trying to create headless firefox, then call "whatismyip.com" to test the IP. However, I always get current IP.
opts = FirefoxOptions()
opts.add_argument("--headless")
myProxy = "xxx.xxx.xxx.xxx:xxxx"
webdriver.DesiredCapabilities.FIREFOX['proxy'] = {
"httpProxy": myProxy,
"sslProxy": myProxy,
"proxyType": "MANUAL",
}
browser = webdriver.Firefox(options=opts)
browser.get( 'https://www.whatismyip.com/')