In a crawling project, the Shockwave Flash plugin keeps crashing. Is there a simple way to disable it to begin with?
Many thanks in advance!
In a crawling project, the Shockwave Flash plugin keeps crashing. Is there a simple way to disable it to begin with?
Many thanks in advance!
This worked for me pretty well.
from selenium.webdriver.chrome.options import Options
options= webdriver.ChromeOptions()
profile = {"plugins.plugins_disabled": ["Shockwave Flash"]}
options.add_experimental_option("prefs", profile)
# Make sure to add chrome_options=options
browser = webdriver.Chrome(executable_path=path,chrome_options = options)