from selenium import webdriver
chrome_options = webdriver.ChromeOptions() prefs = {"profile.managed_default_content_settings.images": 2} chrome_options.add_experimental_option("prefs", prefs) browser = webdriver.Chrome(chrome_options=chrome_options)
其它参数详细设置详见
https://blog.csdn.net/lizeyang/article/details/9394067?sa=X&ved=0CDYQ9QEwDzjcAWoVChMIsI_OuZPtxgIVQp2ICh39MQKG