好先生续集,贵烟价格表和图片,清潭洞爱丽丝ost
import requests head = {"user-agent": "mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/71.0.3578.98 safari/537.36", "connection": "close"} html = requests.get("https://fanhao.mmdaren.com/avzuopin/",headers=head) print(html)
这个代码爬百度,淘宝,网易等网站都是正常的,唯有这个网站错误,网上查了好多,有说添加verify=false,有说"connection": "close",都没有用,求大神帮解决一下
python3.7
# 错误提示
requests.exceptions.sslerror: httpsconnectionpool(host='fanhao.mmdaren.com', port=443): max retries exceeded with url: /avzuopin/ (caused by sslerror(sslerror("bad handshake: syscallerror(-1, 'unexpected eof')")))
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Python爬虫:Request Payload和Form Data的简单区别说明
浅谈Python中threading join和setDaemon用法及区别说明
Python3-异步进程回调函数(callback())介绍
python继承threading.Thread实现有返回值的子类实例
Python中使用threading.Event协调线程的运行详解
网友评论