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
ak.epidemic_baidu(indicator="历史") not working for two days #14
Comments
Yeah, AkShare verision at 0.4.2 have fixed this issue. |
0.4.2 fixed the issue but the data is out of date: ╰─ python3 < crawler_history.py Also now the DataGrid is transposed. |
yes, baidu data source had changed the interface and the history data had stopped at 2-15 |
Thanks for the update. Is there another historic data API that I can use? |
i have checked some data-source and find that the detail data have stopped at 20200215 |
at akshare version 0.4.4 'epidemic_history' can get the historical data update now |
epidemic_baidu_df = ak.epidemic_baidu(indicator="历史")
print(epidemic_baidu_df)
Fetching historic data from epidemic_baidu@akshare...
Traceback (most recent call last):
File "", line 8, in
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/akshare/event/sos.py", line 278, in epidemic_baidu
json_data = json.loads(r.text[r.text.find("V.conf = ") + 9: r.text.find("V.bsData") - 1])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Successfully installed akshare-0.4.1
The text was updated successfully, but these errors were encountered: