Профиль Firefox с прокси-сервером не работает. - PullRequest
0 голосов
/ 09 мая 2019

прокси не меняется с этим кодом. Есть ли изменения или лучший способ ??

from selenium import webdriver

_drivPath = r"C:\Users\abc\Desktop\geckodriver.exe"

profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", "96.42.212.235")
profile.set_preference("network.proxy.http_port", 8080)
profile.update_preferences()

_driver = webdriver.Firefox(executable_path=_drivPath, 
firefox_profile=profile)
_driver.get("https://whatismyipaddress.com")
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...