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

stock_news问题 #5

Open
funfwo opened this issue Dec 7, 2022 · 0 comments
Open

stock_news问题 #5

funfwo opened this issue Dec 7, 2022 · 0 comments

Comments

@funfwo
Copy link

funfwo commented Dec 7, 2022

df=qs.stock_news('北汽蓝谷')

首先是报错,报错信息如下
Traceback (most recent call last):
File "d:\jupyters\torch_env\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "d:\jupyters\torch_env\lib\site-packages\simplejson_init_.py", line 525, in loads
return _default_decoder.decode(s)
File "d:\jupyters\torch_env\lib\site-packages\simplejson\decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "d:\jupyters\torch_env\lib\site-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)

目测是返回值空,是不是被对方网站处理了?
另外,有没有可能开发一个读取个股历史新闻的接口?
感谢

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