I want to write a script that can open website with different ip, I use the script below, but it doesn't load the page
from http_request_randomizer.requests.proxy.requestProxy import RequestProxy
from selenium import webdriver
req_proxy = RequestProxy()
proxies = req_proxy.get_proxy_list()
PROXY = proxies[0].get_address()
webdriver.DesiredCapabilities.CHROME['proxy']={
"httpProxy":PROXY,
"ftpProxy":PROXY,
"sslProxy":PROXY,
"proxyType":"MANUAL",
}
driver = webdriver.Chrome(executable_path= r"/Users/apple/Downloads/chromedriver")
driver.get('https://www.expressvpn.com/what-is-my-ip')
is this related to proxies or something is wrong with my script? should I use different method to do my task? I would Appreciate if someone can help me