# proxy_port = "8010" # proxy_auth = "e0487c83dd6f444a9f9df543f8a461d6:" # Make sure to include ':' at the end # proxies = {"https": "https://{}@{}:{}/".format(proxy_auth, proxy_host, proxy_port), # "http": "http://{}@{}:{}/".format(proxy_auth, proxy_host, proxy_port)} # r = requests.get(url, proxies=proxies, verify=False) # print(""" # Requesting [{}] # through proxy [{}] # Request Headers: # {} # Response Code: {} # {} # """.format(url, proxy_host, r.request.headers, r.status_code, r.text)) PROXY = "https://[email protected]:8010/" proxy = Proxy() proxy.HttpProxy = "http://[email protected]:8010/" proxy.SslProxy = "127.0.0.1:3330" chromeOptions = webdriver.ChromeOptions() chromeOptions.add_argument('--proxy-server=%s' % PROXY) chromeOptions.add_argument("ignore-certificate-errors") chromeOptions.Proxy = proxy driver = webdriver.Chrome(options=chromeOptions) driver.get(url)