mlouielu / twstock

台灣股市股票價格擷取 (含即時股票資訊) - Taiwan Stock Opendata with realtime
http://twstock.readthedocs.io/
MIT License
1.1k stars 341 forks source link

realtime SSL issue #113

Open fredchun opened 1 month ago

fredchun commented 1 month ago

只要用到twstock.realtime.get 我也是出現這樣的錯誤:

HTTPSConnectionPool(host='mis.twse.com.tw', port=443): Max retries exceeded with url: /stock/index.jsp (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
mlouielu commented 1 month ago

Did you try it during the market time?