Python: Disable images in Selenium Google ChromeDriver
作者:互联网
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)
参考:https://stackoverflow.com/questions/28070315/python-disable-images-in-selenium-google-chromedriver
标签:webdriver,Google,Python,selenium,Selenium,chrome,images,prefs,options 来源: https://www.cnblogs.com/profesor/p/14848474.html