Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Set proxy server with selenium and Chrome

from selenium import webdriver

PROXY = "88.157.149.250:8080" # IP:PORT or HOST:PORT

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % PROXY)

chrome = webdriver.Chrome(chrome_options=chrome_options)
chrome.get("http://google.com")

You can open the page https://www.whatismyip.com/my-ip-information/

chrome.get("https://www.whatismyip.com/my-ip-information/")

Tags:

Python

Proxy

Google Chrome

Selenium

Related

Time series distance metric Simple Conditional Routing in Reactjs ReactJS: Maximum update depth exceeded error The meaning of Java code (Object[])(Object[])arrayOfBytes[1] std::initializer_list constructor Replace chunk name with module name in angular 4 lazy loading How to solve a stuck Gitlab CI pipeline? How to upload file to AWS S3 using AWS AppSync JavaScript not able to rename file before upload SQL Interpolated Strings Is there a method to iterate through all documents in a collection in firestore Ionic-3 ion-input maxlength attribute not working

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy