看板 Python 關於我們 聯絡資訊
我試著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
ckc1ark: 剛試了一下 加這行就搞定了 http://tinyurl.com/ydeejnqq 11/09 16:55
ckc1ark: ref: https://stackoverflow.com/a/32651967 11/09 16:56
areyo: 我也ㄧ樣要抓鉅亨網 11/09 18:26
keven92110: 感謝推文!我最近也遇到一模一樣的問題 11/12 18:19
youlove513: 感謝1樓大大 08/09 11:00