aga4gavin / agastock Goto Github PK
View Code? Open in Web Editor NEWA stock information collector and parser for Taiwan and US market. Automatically send LINE message if the pre-defined rules are triggered.
License: MIT License
A stock information collector and parser for Taiwan and US market. Automatically send LINE message if the pre-defined rules are triggered.
License: MIT License
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
$ python3 parse_stock.py -tw
agastock[2021-10-27 09:57:27][INFO ] -----------------------------------------------------------
agastock[2021-10-27 09:57:27][INFO ] [TW STOCK PARSER]
agastock[2021-10-27 09:57:27][INFO ] DIR_BASE: /home/terry/agastock/agastock
agastock[2021-10-27 09:57:27][INFO ] PATH_STOCK_CSV: /home/terry/agastock/agastock/out/stock_summary_tw.csv
agastock[2021-10-27 09:57:27][INFO ] PATHNOTIFY_CSV: /home/terry/agastock/agastock/out/line_notify_tw.csv
agastock[2021-10-27 09:57:27][INFO ] stock csv 讀取失敗
agastock[2021-10-27 09:57:27][INFO ] _query_punish_stock (@QueryHandler_NoLoop)
agastock[2021-10-27 09:57:28][INFO ] query_info (@QueryHandler_ForLoop)
agastock[2021-10-27 09:57:28][INFO ] _query_price_yfinance (@QueryHandler_NoLoop)
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/terry/.local/lib/python3.7/site-packages/multitasking/init.py", line 102, in _run_via_pool
return callee(*args, **kwargs)
File "/home/terry/.local/lib/python3.7/site-packages/yfinance/multi.py", line 168, in _download_one_threaded
actions, period, interval, prepost, proxy, rounding)
File "/home/terry/.local/lib/python3.7/site-packages/yfinance/multi.py", line 183, in _download_one
rounding=rounding, many=True)
File "/home/terry/.local/lib/python3.7/site-packages/yfinance/base.py", line 157, in history
data = data.json()
File "/home/terry/.local/lib/python3.7/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/terry/.local/lib/python3.7/site-packages/multitasking/init.py", line 102, in _run_via_pool
return callee(*args, **kwargs)
File "/home/terry/.local/lib/python3.7/site-packages/yfinance/multi.py", line 168, in _download_one_threaded
actions, period, interval, prepost, proxy, rounding)
File "/home/terry/.local/lib/python3.7/site-packages/yfinance/multi.py", line 183, in _download_one
rounding=rounding, many=True)
File "/home/terry/.local/lib/python3.7/site-packages/yfinance/base.py", line 157, in history
data = data.json()
File "/home/terry/.local/lib/python3.7/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.