I am trying to use Proxy which has user and password but it is not working and showing the real IP. Code given below:
PROXY_HOST = "xxx.xxx.xxx.xxx"
PROXY_PORT = 60000
profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", PROXY_HOST)
profile.set_preference("network.proxy.http_port", PROXY_PORT)
profile.set_preference("network.proxy.socks_username", "user")
profile.set_preference("network.proxy.socks_password", "pwd")
profile.update_preferences()
driver = webdriver.Firefox(firefox_profile=profile)
driver.maximize_window()
driver.get('https://httpbin.org/ip')
html = driver.page_source
print(html)
The Proxy IP itself is working as I verified it by using Python requests
library.