I'm currently working on a scraping project and facing some issues with using a proxy from Webshare. This is my first time using a proxy, and I can't seem to access the target webpage.
Every time I try to open the webpage, I encounter an ERR_TUNNEL_CONNECTION_FAILED error. I've tried various methods, including writing custom Chrome extensions to handle the authentification, but nothing seems to work.Help!
from seleniumwire import webdriverfrom selenium.webdriver.chrome.service import Servicefrom selenium.webdriver.chrome.options import Optionsoptions = {'proxy': {'http': 'http://user:pass@proxyIP:proxyPort','https': 'http://user:pass@proxyIP:proxyPort','no_proxy': 'localhost,127.0.0.1' }}# Path to ChromeDriverchrome_driver_path = "C:\\Program Files (x86)\\chromedriver.exe"service = Service(chrome_driver_path)chrome_options = Options()# Initialize Chrome driver with seleniumwire optionsdriver = webdriver.Chrome(service=service, options=chrome_options, seleniumwire_options=options)driver.get('https://example.com')driver.implicitly_wait(8)driver.quit()