Python 的 selenium 时,报如下错误SSL error code 1, net_error -101

今天使用 Python 的 selenium 时,一直在报如下错误:

156424:153348:1212/170007.899:ERROR:ssl_client_socket_impl.cc(978) handshake failed; returned -1, SSL error code 1, net_error -101

复制代码
# 忽略证书错误
options.add_argument('--ignore-certificate-errors')
# 忽略 Bluetooth: bluetooth_adapter_winrt.cc:1075 Getting Default Adapter failed. 错误
options.add_experimental_option('excludeSwitches', ['enable-automation'])
# 忽略 DevTools listening on ws://127.0.0.1... 提示
options.add_experimental_option('excludeSwitches', ['enable-logging'])
相关推荐
hyf32663314 小时前
泛程序:从零开始搭建稳定程序项目框架
运维·服务器·爬虫·百度·seo
为自己_带盐14 小时前
安敢越雷池一步?浅尝雷池WAF社区版
运维·web安全
NiceCloud喜云15 小时前
海外云服务器怎么选?适用场景、价格和避坑经验总结
运维·服务器
中微极客15 小时前
多智能体编排实战:CrewAI vs AutoGen(2026版)
大数据·网络·人工智能
小王C语言15 小时前
【3. 基于 Vibe Coding 的 OJ 平台】. 构建仓库、环境准备、需求梳理、安装依赖
网络·c++
easy_coder15 小时前
Linux LVM 知识文档
linux·运维
新手unity自用笔记16 小时前
unity网络基础_1
网络·unity·游戏引擎
小王C语言16 小时前
【8.进行接口测试】:通过 curl 进行接口自动化测试 / 通过 python 程序进行接口自动化测试
网络·c++
一条大祥脚16 小时前
26杭电暑期第三场 DP|费用流|分解质因子|数论|贪心|图论|期望|无穷级数
网络·图论·网络流·无穷级数·费用流
小小的木头人16 小时前
Ubuntu 使用 udev + systemd + UUID 实现 USB 硬盘自动挂载
linux·运维·ubuntu