我如何将用Python中的Selenium启动的Firefox流量重定向到代理?我尝试了网络上提供的解决方案,但它们都不起作用!
我已经尝试过:
profile = webdriver.FirefoxProfile()
profile.set_preference("network.proxy.type", 1)
profile.set_preference("network.proxy.http", "54.213.66.208")
profile.set_preference("network.proxy.http_port", 80)
profile.update_preferences()
driver = webdriver.Firefox(profile)
http:
还是https:
? - unutbu