selenium+chromedriver+python3 不加载图片

from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
prefs={"profile.managed_default_content_settings.images":2}
chrome_opt.add_experimental_option("prefs":prefs)

driver = webdriver.Chrome(chrome_options = chrome_options) 

来自 https://www.cnblogs.com/longsongpong/p/10184123.html

posted @ 2019-11-20 09:31  睡觉了嘛  阅读(376)  评论(0编辑  收藏  举报