Home > Back-end >  How to use apify proxy with chromdriver
How to use apify proxy with chromdriver

Time:08-12

Hello I have access to a working apify proxy and I want to use it with selenium but it isn't working the code that I am using :

proxy_url = f"http://auto:{password}@proxy.apify.com:8000"
chromeOptions.add_argument(f'--proxy-server={proxy_url}')
driver = webdriver.Chrome(chrome_driver, options=chromeOptions)
driver.get('https://www.myexternalip.com/raw')
driver.page_source

However, I still get my machine IP

CodePudding user response:

as Luke said the proxy needed initialization his solution worked

Python Selenium Proxy Network

  • Related