SHARE
TWEET
Untitled
a guest
May 29th, 2017
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def CreateDriver(Proxy, UserAgent):
- print("Creating driver.")
- global driver
- ChromeOptions = webdriver.ChromeOptions()
- #ChromeOptions.add_argument("--headless")
- #ChromeOptions.add_argument("--disable-gpu")
- #ChromeOptions.add_argument('--proxy-server=%s' % Proxy)
- #ChromeOptions.add_argument('--user-agent=%s' % UserAgent)
- driver = webdriver.Chrome()
- driver.get("google.com")
- print("hi")
- time.sleep(1000)
- 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.
