Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

擷取華研即時股價出現錯誤?? #39

Closed
blackbryant opened this issue Nov 22, 2016 · 1 comment
Closed

擷取華研即時股價出現錯誤?? #39

blackbryant opened this issue Nov 22, 2016 · 1 comment

Comments

@blackbryant
Copy link

Traceback (most recent call last):
File "E:/git/stock/stockgrs.py", line 118, in
realtime_stock = RealtimeOTC('8446') # 擷取華研即時股價
File "C:\Python27\lib\site-packages\grs\realtime2.py", line 146, in init
super(RealtimeOTC, self).init(no, date)
File "C:\Python27\lib\site-packages\grs\realtime2.py", line 35, in init
self.result = URL.request('GET', STOCKPATH % params)
File "C:\Python27\lib\site-packages\urllib3\request.py", line 66, in request
**urlopen_kw)
File "C:\Python27\lib\site-packages\urllib3\request.py", line 87, in request_encode_url
return self.urlopen(method, url, **extra_kw)
File "C:\Python27\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
release_conn=release_conn, **response_kw)
File "C:\Python27\lib\site-packages\urllib3\connectionpool.py", line 549, in urlopen
raise HostChangedError(self, url, retries)
urllib3.exceptions.HostChangedError: HTTPConnectionPool(host='mis.tse.com.tw', port=80): Tried to open a foreign host with url: http://1.1.1.8

@toomore
Copy link
Owner

toomore commented Nov 22, 2016

@bryan721105 即時資訊目前證交所無法取得,感謝回報!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants