Python selenium chrome不加载图片

chrom_opt = webdriver.ChromeOptions()
prefs = { "profile.managed_default_content_settings.images": 2 }
chrom_opt.add_experimental_option("prefs", prefs)
browser = webdriver.Chrome(executable_path="D:/Google Chrome/chromedriver.exe", chrome_options=chrom_opt)
browser.get("https://www.taobao.com")

猜你喜欢

转载自blog.csdn.net/qq_41741165/article/details/86624576