from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument('--headless')
driver = webdriver.Chrome(chrome_options=options)
driver = webdriver.Chrome(options=options)
driver.get('http://www.baidu.com')
driver.close()
网友评论