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/')