设置selenium 自动加载flash

匿名 (未验证) 提交于 2019-12-03 00:22:01
设置浏览器自动加载爬虫
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chromeOpitons = Options()  prefs= {     "profile.managed_default_content_settings.images":1,     "profile.content_settings.plugin_whitelist.adobe-flash-player":1,     "profile.content_settings.exceptions.plugins.*,*.per_resource.adobe-flash-player":1,  }   chromeOpitons.add_experimental_option('prefs', prefs)   driver = webdriver.Chrome('./chromedriver', chrome_options=chromeOpitons)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!