# 本地谷歌数据
from selenium import webdriver
from selenium.webdriver.chrome.options import Optionse
user_data_dir = r"user-data-dir=C:UsersAdministratorAppDataLocalGoogleChromeUser Data" chrome_options = Options() chrome_options.add_argument(user_data) driver = webdriver.Chrome(chrome_options=chrome_options)