Coder Social home page Coder Social logo

aga4gavin / agastock Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 12.0 1.13 MB

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

Python 94.46% CSS 0.44% HTML 5.10%

agastock's People

Contributors

aga4gavin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

agastock's Issues

simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.