Python 我如何才能访问诸如profile.content\u settings.exceptions.plugins之类的chrome首选参数文档

Python 我如何才能访问诸如profile.content\u settings.exceptions.plugins之类的chrome首选参数文档,python,google-chrome,selenium,flash,webdriver,Python,Google Chrome,Selenium,Flash,Webdriver,在python环境中使用selenium爬行时,我不得不在chrome webdriver中使用flash 我试着找到一个允许闪光的设置 下面的两个链接是我找到的信息 毕竟,我没有找到一个明确的答案,我在堆栈溢出上找到了问题并解决了它 内容如下。 ChromeOptions选项=新的ChromeOptions(); Map prefs=新的HashMap(); prefs.put(“profile.default\u content\u setting\u values.plugins

在python环境中使用selenium爬行时,我不得不在chrome webdriver中使用flash

我试着找到一个允许闪光的设置

下面的两个链接是我找到的信息

毕竟,我没有找到一个明确的答案,我在堆栈溢出上找到了问题并解决了它

内容如下。

ChromeOptions选项=新的ChromeOptions();
Map prefs=新的HashMap();
prefs.put(“profile.default\u content\u setting\u values.plugins”,1);
prefs.put(“profile.content\u settings.plugin\u whitelist.adobeflashplayer”,1);
prefs.put(“profile.content\u settings.exceptions.plugins.*,per\u resource.adobeflashplayer”,1);
//为此站点启用闪存
prefs.put(“pluginAllowedForURL”https://arlo.netgear.com");
选项。设置实验选项(“prefs”,prefs);
我的问题是

1)在哪里可以找到类似的信息

  • profile.default\u content\u setting\u values.plugins
  • profile.content\u settings.plugin\u whitelist.adobe-flash-player
  • rofile.content\u settings.exceptions.plugins.,.per\u resource.adobe-flash-player
2)如何确认这是官方信息?

如果您有任何其他方式来查找此信息,请让我们知道您的关键字


由译者写的句子可能会很尴尬。多谢各位

  • 这些是您的chrome配置文件中的键。例如,如果要打开它,可以转到profile.content\u settings.exceptions.plugins

  •  ChromeOptions options = new ChromeOptions();
    Map<String, Object> prefs = new HashMap<String, Object>();
    prefs.put("profile.default_content_setting_values.plugins", 1);
    prefs.put("profile.content_settings.plugin_whitelist.adobe-flash-player", 1);
    prefs.put("profile.content_settings.exceptions.plugins.*,*.per_resource.adobe-flash-player", 1);
    // Enable Flash for this site
    prefs.put("PluginsAllowedForUrls", "https://arlo.netgear.com");
    options.setExperimentalOption("prefs", prefs);