1from selenium import webdriver
2
3chrome_options = webdriver.ChromeOptions()
4prefs = {"profile.managed_default_content_settings.images": 2}
5chrome_options.add_experimental_option("prefs", prefs)
6driver = webdriver.Chrome(chrome_options=chrome_options)
7