作者opengood5566 ( )
看板Python
标题[问题] 爬虫出现requests.exceptions.SSLError
时间Thu Nov 9 13:04:05 2017
我试着run以下script
--------------------------
import requests
url = '
https://www.cnyes.com/twstock/ps_historyprice.aspx?code=0050'
response = requests.get(url)
--------------------------
之前是可以run的
但现在出现以下讯息:
requests.exceptions.SSLError: EOF occurred in violation of protocol
(_ssl.c:661)
请问该怎麽解决呢?
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.166.172.21
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1510203848.A.160.html
※ 编辑: opengood5566 (118.166.172.21), 11/09/2017 13:09:36
1F:推 ckc1ark: 我刚试了curl 有些版本也不行 11/09 16:47
4F:推 areyo: 我也ㄧ样要抓钜亨网 11/09 18:26
5F:推 keven92110: 感谢推文!我最近也遇到一模一样的问题 11/12 18:19
6F:推 youlove513: 感谢1楼大大 08/09 11:00