Seleniume Webdriver using Proxy IP -


i using selenium webdriver scrap data website.due heavy traffic ip, not able access website(may ip blocked website).

is there way setup proxy ip, treated new ip every-time run webdriver..?

you can set proxy ip selenium webdriver per following way :

firefoxprofile profile = new firefoxprofile(); profile.addadditionalpreference("network.proxy.http", "localhost"); profile.addadditionalpreference("network.proxy.http_port", "8080"); webdriver driver = new firefoxdriver(profile); 

you should change desired ip address , port in above code.

for more detail , please have @ : selenium webdriver proxy


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -