0

So i'm using python and selenium to repeat requests to a specific website. I am using a rotating proxy that is supposed to give me a new ip after each requests. The issue is that when I do a request for example to whatsmyip.org in the chrome window I don't always get a fresh ip.

If my requests are done every 2seconds I keep the same ip, but if it's every 10-15s then my ip changes.

If you have any idea how I could fix this it would be nice, for example a chrome option ? or a capability maybe ? I really don't know.

  • maybe your problem is with the cache , you could try to modify your code to clear browser cache and cookies between each request to ensure that each request appears to be coming from a new session. `driver.delete_all_cookies()` https://stackoverflow.com/questions/50456783/python-selenium-clear-the-cache-and-cookies-in-my-chrome-webdriver – Mohammed Chaaraoui Feb 05 '23 at 14:16

0 Answers0