from selenium import webdriver
PROXY = "23.23.23.23:3128" # IP:PORT or HOST:PORT
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % PROXY)
chrome = webdriver.Chrome(options=chrome_options)
chrome.get("http://whatismyipaddress.com")
More Related Contents:
- selenium.common.exceptions.WebDriverException: Message: invalid session id using Selenium with ChromeDriver and Chrome through Python
- Unable to use Selenium to automate Chase site login
- How to rotate Selenium webrowser IP address
- How do I set a proxy for phantomjs/ghostdriver in python webdriver?
- How to sleep Selenium WebDriver in Python for milliseconds
- How to use Chrome Profile in Selenium Webdriver Python 3
- Running Selenium Webdriver with a proxy in Python
- Change ChromeOptions in an existing webdriver
- How to connect to Tor browser using Python
- InvalidArgumentException: Message: invalid argument: user data directory is already in use error using –user-data-dir to start Chrome using Selenium
- How can I use a SOCKS 4/5 proxy with urllib2?
- Downloading with chrome headless and selenium
- How to make python Requests work via socks proxy
- Failed to read descriptor from node connection: A device attached to the system is not functioning error using ChromeDriver Selenium on Windows OS
- function for switching frames in python, selenium
- WebDriverException: Message: Service /content/chromedriver unexpectedly exited. Status code was: -6 with ChromeDriver Google Colab and Selenium
- TypeError: ‘module’ object is not callable error with driver=webdriver(“C:\\Python34\\Lib\\site-packages\\selenium\\webdriver\\chromedriver.exe”)
- Python – Twisted, Proxy and modifying content
- Undetected Chromedriver not loading correctly
- Chrome crashes after several hours while multiprocessing using Selenium through Python
- How to solve ‘Getting Default Adapter failed’ error when launching Chrome and try to access a webpage using the ChromeDriver using Selenium
- Checking if an element exists with Python Selenium
- How to get an attribute of an element from Selenium
- Chrome browser initiated through ChromeDriver gets detected
- WebDriverException: Service U:/Scraping/chromedriver.exe unexpectedly exited. Status code was: 1 while working with Chrome and Python
- Django Python rest framework, No ‘Access-Control-Allow-Origin’ header is present on the requested resource in chrome, works in firefox
- Python: Disable images in Selenium Google ChromeDriver
- Is it possible to run multiple instances of one selenium test at once?
- Can’t use chrome driver for Selenium
- Selenium / Python – Selecting via css selector