Python Forum
Python+Selenium+PhantomJS with proxy list - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Python+Selenium+PhantomJS with proxy list (/thread-1623.html)



Python+Selenium+PhantomJS with proxy list - technoir - Jan-17-2017

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