You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use a proxy in Incognito mode, but it didn't work
fromselenium_driverlessimportwebdriverimportasyncioasyncdefmain():
proxy="http://127.0.0.1:10809"options=webdriver.ChromeOptions()
options.add_argument('--incognito')
asyncwithwebdriver.Chrome(options=options) asdriver:
# this will overwrite the proxy for ALL CONTEXTSawaitdriver.set_single_proxy(proxy)
awaitdriver.get("https://ip.900cha.com/")
awaitasyncio.sleep(1000)
asyncio.run(main())
The text was updated successfully, but these errors were encountered:
I tried to use a proxy in Incognito mode, but it didn't work ` from selenium_driverless import webdriver import asyncio
async def main(): proxy = "http://127.0.0.1:10809" options = webdriver.ChromeOptions() options.add_argument('--incognito') async with webdriver.Chrome(options=options) as driver: # this will overwrite the proxy for ALL CONTEXTS await driver.set_single_proxy(proxy) await driver.get("https://ip.900cha.com/") await asyncio.sleep(1000)
asyncio.run(main())
Yes, because for setting proxies dynamically, a chrome-extension is required
Adding those chrome extensions is only really possible without incognito
I tried to use a proxy in Incognito mode, but it didn't work
The text was updated successfully, but these errors were encountered: