作者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://www.ptt.cc/bbs/Python/M.1510203848.A.160.html
※ 編輯: opengood5566 (118.166.172.21), 11/09/2017 13:09:36
推 ckc1ark: 我剛試了curl 有些版本也不行 11/09 16:47
推 areyo: 我也ㄧ樣要抓鉅亨網 11/09 18:26
推 keven92110: 感謝推文!我最近也遇到一模一樣的問題 11/12 18:19
推 youlove513: 感謝1樓大大 08/09 11:00