• Python selenium proxy?

    @legostaev
    from seleniumwire import webdriver
    from auth_data_proxy import proxyLogin, proxyPassword
    
    # selenium-wire proxy settings
    proxy_options = {
        "proxy": {
            "http": f"http://{proxyLogin}:{proxyPassword}@163.198.108.176:8000",
            "https": f"http://{proxyLogin}:{proxyPassword}@163.198.108.176:8000",
            "no_proxy": "localhost,127.0.0.1" # excludes
        }
    }
    browser = webdriver.Chrome('../chromedriver/chromedriver',  seleniumwire_options=proxy_options)
    Ответ написан
    Комментировать