当我进入一个站点时,我使用的是带有无法检测的色度驱动器的selenium-有线,它给我的是:“您到这个站点的连接是不安全的”,并且网站地址中的https被划过了,这就是说证书是无效的。然而,该网站的证书并不无效。当我进入我的正常浏览器的网站,它的工作,它应该。我注意到这种情况发生在所有的https网站上,比如和等等。
import seleniumwire.undetected_chromedriver as uc
if __name__ == '__main__':
options = uc.ChromeOptions()
driver = uc.Chrome(
options=options,
seleniumwire_options={}
)
driver.get('https://httpbin.org/headers')这不会给我弹出或任何东西,我仍然可以正常使用该网站,但我想得到它的修复。
我怎么才能解决这个问题?
发布于 2022-05-17 03:36:45
将证书安装在铬中。您可以使用python -m seleniumwire extractcert获得证书,也可以从https://raw.githubusercontent.com/wkeeling/selenium-wire/master/seleniumwire/proxy/ca.crt下载该证书如何安装。
打开Chrome settings
https://stackoverflow.com/questions/72201652
复制相似问题