Last active
October 18, 2018 12:37
-
-
Save kn0wm4d/4de22a54a6773b02666ed1804405747d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.action_chains import ActionChains | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
import time | |
PROXY = 'https://127.0.0.1:8080' | |
options = Options() | |
options.add_argument('--proxy-server=%s' % PROXY) | |
options.add_argument('--no-sandbox') | |
options.add_argument('--allow-running-insecure-content') | |
options.add_argument('--ignore-certificate-errors') | |
capabilities = DesiredCapabilities.CHROME.copy() | |
capabilities['acceptSslCerts'] = True | |
capabilities['acceptInsecureCerts'] = True | |
browser = webdriver.Chrome( | |
chrome_options=options, desired_capabilities=capabilities) | |
browser.get(url='http://xavi.al') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment