Comments (2)
Update codes manually: https://github.com/mlouielu/twstock#update-codes
➜ ~ python -m twstock -s 00878
Traceback (most recent call last):
File "runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "runpy.py", line 85, in _run_code
exec(code, run_globals)
File "twstock/__main__.py", line 8, in <module>
cli.run()
File "twstock/cli/__init__.py", line 21, in run
stock.run(args.stock)
File "twstock/cli/stock.py", line 8, in run
s = twstock.Stock(sid)
File "twstock/stock.py", line 148, in __init__
) if codes[sid].market == '上市' else TPEXFetcher()
KeyError: '00878'
➜ ~ python -m twstock -U
Start to update codes
Done!
➜ ~ python -m twstock -s 00878
-------------- 00878 ----------------
high : 15.16 15.22 15.23 15.23 15.44
low : 15.09 15.1 15.16 15.16 15.3
price: 15.13 15.22 15.21 15.23 15.4
from twstock.
解決了,Thanks !!
from twstock.
Related Issues (20)
- twstock.realtime.get() 查無資料 HOT 19
- 有提供盤中零股五檔報價功能嗎
- fetch 時間頗久
- 股票 1102 抓取1年內的資料遇到問題
- 請問可以抓台期指的即時數據或歷史數據嗎
- 'OutStream' object has no attribute 'readable' HOT 1
- Twstock
- Bypass TWSE request limit using multiple proxies
- Got banned after 4 requests (3 sec gap) HOT 3
- ModuleNotFoundError: No module named 'lxml' HOT 1
- 五日均價內若有空值None 會出現無法判斷(TypeError: unsupported operand type(s) for +: 'int' and 'NoneType')
- http.client.RemoteDisconnected: Remote end closed connection without response
- 請問可以查詢ETF嗎 HOT 4
- 抓取大盤指數
- 查詢代號:1795時程式會出現錯誤 HOT 6
- realtime的latest_trade_price股價為 '-'
- Config file pyproject.toml does not exist after $flit init HOT 2
- 60日線 跟 240日線 無法顯示 HOT 2
- Unittest 總是遇到 AssertError HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twstock.