from selenium import webdriver
from time import sleep
profile = webdriver.FirefoxOptions()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.socks", "34.81.160.132")
profile.set_preference("network.proxy.socks_port", 80)
driver = webdriver.Firefox(options=profile)
driver.get("http://2ip.ru")
sleep(100000000)
driver.close()
driver.quit()