CSDN首页直接访问出现MaxRetryError

来源:7-13 获取所有的二级分类的url

慕瓜9435863

2022-11-03

图片描述

但是此处报出几个错误:
1、C:\Users\gala\Envs\spider\lib\site-packages\OpenSSL_util.py:6: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.hazmat.bindings.openssl.binding import Binding
这个好像是依赖问题,是不是python3.6就用不了这个cryptography这个模块了?图片描述

2、爆出了MaxRetryError错误,这个是达到最大重试次数了吗?图片描述

老师,问一下这种情况怎么解决啊?

写回答

1回答

bobby

2022-11-04

上面的看起来是警告,不应该是造成下面错误的原因, 下面的错误应该是headers造成了被反爬,你通过浏览器拷贝所有的headers然后复制到这里运行试试

1
3
bobby
回复
慕瓜9435863
警告可以不用管
2022-11-07
共3条回复

Python爬虫工程师实战 大数据时代必备

慕课网严选精品教程,高质量内容+服务!

2377 学习 · 1158 问题

查看课程