from selenium.webdriver.common.proxy import Proxy,ProxyType
from selenium import webdriver
prox = Proxy()
prox.proxy_type = ProxyType.MANUAL
prox.ssl_proxy = str()
prox.http_proxy = str()
capa = webdriver.DesiredCapabilities.OPERA
driver = webdriver.Opera(desired_capabilities=capa)
proxy = open('готовые работать прокси.txt','r')
aa = proxy.read().split('\n')
for i in aa:
driver.get('https://www.showmyip.com')