gpt4 book ai didi

python - Selenium 错误 - ConnectionResetError : [WinError 10054] An existing connection was forcibly closed by the remote host

转载 作者:太空宇宙 更新时间:2023-11-04 05:28:37 35 4
gpt4 key购买 nike

我正在使用 selenium 模块,但突然出现此错误

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

这是我给出错误的简单代码

from selenium import webdriver

browser = webdriver.Firefox()
browser.get('https://www.instagram.com/')

最佳答案

可能是时候为您的导航器升级 Webdriver 了。我在使用 Chrome 时遇到了同样的问题,用最新版本替换现有的 chromedriver.exe(在我的例子中是 windows)解决了这个问题。

关于python - Selenium 错误 - ConnectionResetError : [WinError 10054] An existing connection was forcibly closed by the remote host,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37903985/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com