python+selenium打开浏览器开发者模式
from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("--auto-open-devtools-for-tabs") driver = webdriver.Chrome(chrome_options=options) driver.maximize_window()
from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("--auto-open-devtools-for-tabs") driver = webdriver.Chrome(chrome_options=options) driver.maximize_window()