设置chromedriver不加载图片
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
时间: 2024-10-10 17:22:14