daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest May 29th, 2017 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def CreateDriver(Proxy, UserAgent):
  2.     print("Creating driver.")
  3.  
  4.     global driver
  5.  
  6.     ChromeOptions = webdriver.ChromeOptions()
  7.     #ChromeOptions.add_argument("--headless")
  8.     #ChromeOptions.add_argument("--disable-gpu")
  9.     #ChromeOptions.add_argument('--proxy-server=%s' % Proxy)
  10.     #ChromeOptions.add_argument('--user-agent=%s' % UserAgent)
  11.  
  12.     driver = webdriver.Chrome()
  13.     driver.get("google.com")
  14.     print("hi")
  15.     time.sleep(1000)
  16.  
  17.     driver.set_page_load_timeout(DriverTimeout)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top