Skip to content

Instantly share code, notes, and snippets.

@xjxckk
Last active December 16, 2021 12:17
Show Gist options
  • Save xjxckk/09034f590de04506aa68a5e8fbcfb79a to your computer and use it in GitHub Desktop.
Save xjxckk/09034f590de04506aa68a5e8fbcfb79a to your computer and use it in GitHub Desktop.
Python selenium
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import Select
options = Options()
options.add_experimental_option('excludeSwitches', ['enable-logging'])
options.add_argument('--headless')
driver = webdriver.Chrome(options=options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment