SE
Browser Automation

Selenium proxy integration

Chrome and Firefox under Selenium don't accept username:password proxies through plain command-line flags, so the cleanest path is Selenium Wire, which injects the credentials for you. This lets Selenium drive a real browser through Aethyn residential IPs.

Setup steps

  1. 1Install Selenium Wire: pip install selenium-wire.
  2. 2Pass your Aethyn proxy in seleniumwire_options.
  3. 3Launch the driver and browse as usual.
  4. 4Add targeting suffixes in the username for geo control.

Code

Selenium Wire (Python)
from seleniumwire import webdriver

proxy = "http://aethyn-XXXXX-country-us:PASSWORD@proxy.aethyn.io:2099"
options = {
    "proxy": {
        "http": proxy,
        "https": proxy,
        "no_proxy": "localhost,127.0.0.1",
    }
}

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

Replace aethyn-XXXXX and PASSWORD with your dashboard credentials. See the full targeting reference and protocol/port list.

Tips

  • Selenium Wire handles proxy auth that vanilla Selenium cannot.
  • Pair residential proxies with a realistic user-agent to reduce detection.
  • Use a sticky session for multi-step flows so the IP stays constant.

Selenium proxy FAQ

Can I use plain Selenium without Selenium Wire?
Only for proxies that don't require authentication. Because Aethyn uses username/password auth, Selenium Wire (or a Chrome extension that injects credentials) is the simplest reliable option.

Ready to wire up Selenium?

Get your credentials and route your first Selenium request through residential IPs in minutes.

Docs, solutions & blog

Related integrations

All integrations