[問題] 爬蟲出現requests.exceptions.SSLError
我試著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
11/09 16:47, 1F
推
11/09 16:55,
6年前
, 2F
11/09 16:55, 2F
→
11/09 16:56,
6年前
, 3F
11/09 16:56, 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
08/09 11:00, 6F