【问题标题】:The SSL certificate used to load resources will be distrusted用于加载资源的 SSL 证书将不受信任
【发布时间】:2018-03-31 12:47:54
【问题描述】:
from selenium import webdriver

opt = webdriver.chrome.options.Options()
opt.add_argument("--headless")
opt.add_argument("--disable-gpu")
driver = webdriver.Chrome(chrome_options=opt);
driver.get("https://steamcommunity.com/")

我正在尝试使用 Selenium 运行无头 chrome。但不断收到以下错误:

[0331/134342.207:INFO:CONSOLE(0)] "The SSL certificate used to load resources from https://steamcommunity-a.akamaihd.net will be distrusted in the future. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.", source: https://steamcommunity.com/ (0)

我已尝试添加 --ignore-certificate-errors 标志,但仍然收到相同的错误。

【问题讨论】:

    标签: python-3.x google-chrome selenium webdriver ssl-certificate


    【解决方案1】:

    我不完全确定这是您正在寻找的分辨率,但您可以简单地使用 http URL http://steamcommunity.com/ 而不使用 SSL s 后缀。这将(我希望)阻止显示此通知。

    【讨论】:

      猜你喜欢
      • 2016-01-15
      • 1970-01-01
      • 2015-02-14
      • 1970-01-01
      • 2011-04-14
      • 1970-01-01
      • 1970-01-01
      • 2016-06-01
      • 1970-01-01
      相关资源
      最近更新 更多