from selenium import webdriver chrome_options = webdriver.ChromeOptions() prefs = {"profile.managed_default_content_settings.images":2} chrome_options.add_experimental_option("prefs",prefs) driver = webdriver.Chrome(chrome_options=chrome_options) driver.get("https://www.baidu.com/")
原文地址:https://www.cnblogs.com/royfans/p/9055975.html
时间: 2024-10-10 08:06:33