webdriver.chrome()禁止加載圖片

from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs", prefs)
browser = webdriver.Chrome(chrome_options=chrome_options)其它參數詳細設置詳見https://blog.csdn.net/lizeyang/article/details/9394067?sa=X&ved=0CDYQ9QEwDzjcAWoVChMIsI_OuZPtxgIVQp2ICh39MQKG
相關文章
相關標籤/搜索