# 导入包
from selenium.webdriver.chrome.options import Options
# 在请求之前添加这段代码
chrome_options = Options()
No_Image_loading = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs", No_Image_loading)
# 导入包
from selenium.webdriver.chrome.options import Options
# 在请求之前添加这段代码
chrome_options = Options()
No_Image_loading = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs", No_Image_loading)
本文标题:selenium-禁止图片加载
本文链接:https://www.haomeiwen.com/subject/lnrpiqtx.html
网友评论