Closed fai2002 closed 8 years ago
我使用pycharm+django+python2.7 在使用grs模塊的時候一直出現此錯誤:HTTPConnectionPool(host='mis.tse.com.tw', port=None): Max retries exceeded with url: /stock/api/getStockInfo.jsp?ex_ch=otc_070279.tw20141118&json=1&delay=0&=1416282457 (Caused by ProtocolError('Connection aborted.', error(10060, ''))) 我不知道什麼原因,應該怎麼解決?
@fai2002 一樣也是網路連線的問題,這套件需要連線才能擷取資料。
@toomore 因為在大陸,所以可能被封鎖了,有什麼方法可以連線正常嗎?我嘗試過用goagent也是失敗。
不好意思 ,現在才看到這篇文,大陸確實 有封鎖 mis.twse.com.tw , 設 proxy 就可以解了, 我以前都是這樣做,但現在是 API 改版,所以 光解網路問題是沒用的
我使用pycharm+django+python2.7 在使用grs模塊的時候一直出現此錯誤:HTTPConnectionPool(host='mis.tse.com.tw', port=None): Max retries exceeded with url: /stock/api/getStockInfo.jsp?ex_ch=otc_070279.tw20141118&json=1&delay=0&=1416282457 (Caused by ProtocolError('Connection aborted.', error(10060, ''))) 我不知道什麼原因,應該怎麼解決?