1

whenever I try to use a proxy with undetedted-chromedriver, it just doesn't work and diplays my ip. When I use the normal webdriver, it works perfectly.

from selenium import webdriver
from time import sleep


ip_port = "ip:port"

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % ip_port)
driver = uc.Chrome(use_subprocess=True, chrome_options=chrome_options)

driver.get('https://www.myexternalip.com/raw')
sleep(999)

How can I make the proxy work with undetected chromedriver?

This is the site https://www.myexternalip.com/raw : With undetected chromedriver (gives my actual ip)

ip adress

Thanks for your help.

xtekky
  • 228
  • 1
  • 10
  • Check out the answer from the other thread [here](https://stackoverflow.com/questions/55582136/how-to-set-proxy-with-authentication-in-selenium-chromedriver-python#answer-55582859) – anonymous Apr 03 '22 at 18:18
  • @NaphatTheerawat its not about authentication, its about making the proxy work with undetected-chromedriver – xtekky Apr 03 '22 at 22:51

1 Answers1

0

Got it work with:

chrome_options = Options()
    chrome_options.add_argument('--proxy-server=ip:port')
    driver = uc.Chrome(options=chrome_options)
    driver.get('https://www.myexternalip.com/raw')

thanks once again with your "help"

xtekky
  • 228
  • 1
  • 10