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

请问运行history_starter_stock_price.py,字符处理报错。。。 #7

Open
Antoniowu opened this issue Feb 26, 2023 · 0 comments

Comments

@Antoniowu
Copy link

(base) C:\stock\Listed-company-news-crawl-and-text-analysis-master\src\Gon>python ./history_starter_stock_price.py
Traceback (most recent call last):
File "C:\stock\Listed-company-news-crawl-and-text-analysis-master\src\Gon\history_starter_stock_price.py", line 13, in
stock_info_spyder.get_historical_news()
File "C:\stock\Listed-company-news-crawl-and-text-analysis-master\src\Gon\stockinfospyder.py", line 59, in get_historical_news
self.get_stock_code_info()
File "C:\stock\Listed-company-news-crawl-and-text-analysis-master\src\Gon\stockinfospyder.py", line 46, in get_stock_code_info
stock_symbol_code = ak.stock_zh_a_spot().get(["symbol", "code"]) # 获取A股所有股票的symbol和code
File "C:\ProgramData\Anaconda3\lib\site-packages\akshare\stock\stock_zh_a_sina.py", line 61, in stock_zh_a_spot
data_json = demjson.decode(r.text)
File "C:\ProgramData\Anaconda3\lib\site-packages\akshare\utils\demjson.py", line 5740, in decode
result = j.decode(txt,
File "C:\ProgramData\Anaconda3\lib\site-packages\akshare\utils\demjson.py", line 4957, in decode
raise errors[0]
akshare.utils.demjson.JSONDecodeError: Can not decode value starting with character '<'

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

1 participant