selenium设置谷歌无头浏览器
作者:互联网
from selenium import webdriver from selenium.webdriver.chrome.options import Options def Browse(): chrome_options=Options() chrome_options.add_argument('--headless') driver=webdriver.Chrome(chrome_options=chrome_options,executable_path="chromedriver.exe") return driver
标签:webdriver,浏览器,chrome,driver,selenium,无头,import,options 来源: https://www.cnblogs.com/feiquan/p/11418874.html