Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question