You can do it with plain selenium all you need to set the proxy in the browser options.
from selenium import webdriver
PROXY_WITH_PORT= "111.222.333.443:8080" chrome_options = webdriver.ChromeOptions() chrome_options.add_argument(f'--proxy-server={PROXY_WITH_PORT}')
chrome = webdriver.Chrome(chrome_options=chrome_options) chrome.get("http://google.com")
In general you can pass any command like argument to the browser using options. For chrome you can find all the proxy related options here: https://www.chromium.org/developers/design-documents/network-settings/
Also if you are using the latest selenium (4.10 I think) you don’t need to point to the chromedriver executable, selenium will automatically download it if it can’t find the driver
Edit: more information about chrome arguments Edit: info about driver download