from selenium import webdriver
#这个我也没看明白 但需要这些设置
profile = webdriver.FirefoxProfile()
profile.set_preference(‘network.proxy.type’, 1)
profile.set_preference(‘network.proxy.http’, ‘222.73.130.111’)
profile.set_preference(‘network.proxy.http_port’, 888) # int
profile.update_preferences()
driver = webdriver.Firefox(firefox_profile=profile)
#到这里都需要 新测可用 不需要其它的什么插件很方法
driver.get(‘http://httpbin.org/ip’)