Back to Knowledge Base
Guides

How to Use Proxies in Selenium

16 Mar 2026 · 927 views
Using Inside Proxy with Selenium for web scraping or automation.

PYTHON + SELENIUM EXAMPLE

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

PROXY = "USERNAME:PASSWORD@proxy.insideproxy.net:8080"

options = Options()
options.add_argument(f"--proxy-server=http://{PROXY}")

driver = webdriver.Chrome(options=options)
driver.get("https://httpbin.org/ip")
print(driver.page_source)
driver.quit()

NOTE: Chrome-based Selenium does not support proxy authentication via URL directly.
For authenticated proxies in Selenium, use the seleniumwire library:

pip install seleniumwire

from seleniumwire import webdriver

proxy_options = {
"proxy": {
"http": "http://USERNAME:PASSWORD@proxy.insideproxy.net:8080",
"https": "https://USERNAME:PASSWORD@proxy.insideproxy.net:8080",
}
}

driver = webdriver.Chrome(seleniumwire_options=proxy_options)
driver.get("https://httpbin.org/ip")

Replace USERNAME and PASSWORD with your credentials from Dashboard → My Plans.