[問題] 爬蟲出現requests.exceptions.SSLError

看板Python作者 ( )時間6年前 (2017/11/09 13:04), 6年前編輯推噓5(501)
留言6則, 4人參與, 6年前最新討論串1/1
我試著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

11/09 16:47, 6年前 , 1F
我剛試了curl 有些版本也不行
11/09 16:47, 1F

11/09 16:55, 6年前 , 2F
剛試了一下 加這行就搞定了 http://tinyurl.com/ydeejnqq
11/09 16:55, 2F

11/09 16:56, 6年前 , 3F

11/09 18:26, 6年前 , 4F
我也ㄧ樣要抓鉅亨網
11/09 18:26, 4F

11/12 18:19, 6年前 , 5F
感謝推文!我最近也遇到一模一樣的問題
11/12 18:19, 5F

08/09 11:00, 6年前 , 6F
感謝1樓大大
08/09 11:00, 6F
文章代碼(AID): #1Q0-785W (Python)