from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('--headless')
driver = webdriver.Chrome(chrome_options=chrome_options,executable_path = '驱动的存放地址')
selenium设置谷歌无头浏览器
最新推荐文章于 2024-11-21 14:44:21 发布