V
V
Voprosium2021-08-31 03:20:54
proxy
Voprosium, 2021-08-31 03:20:54

How to log into a proxy in incognito mode in Google Chrome Slenium?

I'm having trouble using a proxy with incognito mode authorization. That is, it works without incognito, but it does not work with incognito. What to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UberPool, 2021-08-31
@UberPool

Try this

from selenium import webdriver
from seleniumwire import webdriver
from webdriver_manager.chrome import ChromeDriverManager

username = ''
password = ''
ip = ''
port = ''
 
proxy = f'{username}:{password}@{ip}:{port}'
options = {
     'proxy': {
         'https': f'https://{proxy}',
     }
}

driver = webdriver.Chrome(ChromeDriverManager().install(),seleniumwire_options=options)

driver.get('https://2ip.ru/')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question