toomore / grs

📈 台灣上市上櫃股票價格擷取(Fetch Taiwan Stock Exchange data)含即時盤、台灣時間轉換、開休市判斷。
http://pypi.python.org/pypi/grs
MIT License
430 stars 164 forks source link

鏈接一直失敗 #16

Closed fai2002 closed 8 years ago

fai2002 commented 9 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, ''))) 我不知道什麼原因,應該怎麼解決?

toomore commented 9 years ago

@fai2002 一樣也是網路連線的問題,這套件需要連線才能擷取資料。

fai2002 commented 9 years ago

@toomore 因為在大陸,所以可能被封鎖了,有什麼方法可以連線正常嗎?我嘗試過用goagent也是失敗。

earxx commented 9 years ago

不好意思 ,現在才看到這篇文,大陸確實 有封鎖 mis.twse.com.tw , 設 proxy 就可以解了, 我以前都是這樣做,但現在是 API 改版,所以 光解網路問題是沒用的