uname-yang / pysnowball

雪球股票数据接口 python edition
Apache License 2.0
1.13k stars 275 forks source link

ball.main_indicator报错 #3

Closed wbzczyly closed 3 years ago

wbzczyly commented 4 years ago

报错信息如下,希望能帮助解决,谢谢!

File "", line 1, in runfile('/Users/tomchen/org/Emacs_SVN/PythonCode/snowball.py', wdir='/Users/tomchen/org/Emacs_SVN/PythonCode')

File "/Users/tomchen/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 710, in runfile execfile(filename, namespace)

File "/Users/tomchen/anaconda3/lib/python3.6/site-packages/spyder/utils/site/sitecustomize.py", line 101, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "/Users/tomchen/org/Emacs_SVN/PythonCode/snowball.py", line 19, in print(ball.main_indicator('SZ300251'))

File "/Users/tomchen/anaconda3/lib/python3.6/site-packages/pysnowball/f10.py", line 64, in main_indicator return utls.fetch(url)

File "/Users/tomchen/anaconda3/lib/python3.6/site-packages/pysnowball/utls.py", line 24, in fetch raise Exception(response.content)

Exception: b'{"error_description":"\xe9\x81\x87\xe5\x88\xb0\xe9\x94\x99\xe8\xaf\xaf\xef\xbc\x8c\xe8\xaf\xb7\xe5\x88\xb7\xe6\x96\xb0\xe9\xa1\xb5\xe9\x9d\xa2\xe6\x88\x96\xe8\x80\x85\xe9\x87\x8d\xe6\x96\xb0\xe7\x99\xbb\xe5\xbd\x95\xe5\xb8\x90\xe5\x8f\xb7\xe5\x90\x8e\xe5\x86\x8d\xe8\xaf\x95","error_uri":"/v5/stock/f10/cn/indicator.json","error_code":"400016"}'

uname-yang commented 4 years ago

{ "error_description": "遇到错误,请刷新页面或者重新登录帐号后再试", "error_uri": "/v5/stock/capital/margin.json", "error_code": "400016" } 可能是token过期了,重新设置