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
Post a Comment