Last active
February 16, 2023 23:19
-
-
Save duhaime/ab62295f6aedb9c2300471afd5ae7ef9 to your computer and use it in GitHub Desktop.
Python Selenium Headless Chrome OSX
This file contains hidden or 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 | |
chrome_options = Options() | |
chrome_options.add_argument("--headless") | |
chrome_options.binary_location = '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' | |
driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver', chrome_options=chrome_options) | |
driver.get("http://www.duo.com") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
haha you're right! I removed the unneeded line :)