Python Forum

Full Version: Python+Selenium+PhantomJS with proxy list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In my script i used this method for working PhantomJS with proxy:
service_args = [
    '--proxy=0.0.0.0:3128',
    '--proxy-type=http',
    ]
browser = webdriver.PhantomJS(service_args=service_args)
Please tell me can I use a proxy list ? I need that script worked until the PhantomJS will pass through the all proxy in list? And how to implement that at the idle proxy, he wrote a message and move to the next? For example put detain 20 seconds and if there is no response from the proxy to go further.
Thank you advance