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

JSONDecodeError #2

Open
bujiatian2017 opened this issue May 21, 2019 · 0 comments
Open

JSONDecodeError #2

bujiatian2017 opened this issue May 21, 2019 · 0 comments

Comments

@bujiatian2017
Copy link

When I run this:
import aqicn

result = aqicn.utils.get_stations_data(key='Shanghai', fields_to_include=['aqi', 'id', 'geo', 'utime'], adapter=None)
print(result)

Return
Traceback (most recent call last):
File "D:/pujiatian/PycharmProjects/Transtatus/myaqi.py", line 3, in
result = aqicn.utils.get_stations_data(key='Shanghai', fields_to_include=['aqi', 'id', 'geo', 'utime'], adapter=None)
File "C:\Anaconda3\lib\site-packages\aqicn-0.1-py3.6.egg\aqicn\utils.py", line 28, in get_stations_data
File "C:\Anaconda3\lib\site-packages\aqicn-0.1-py3.6.egg\aqicn\utils.py", line 25, in scrap_data_from_website
File "C:\Anaconda3\lib\json_init_.py", line 367, in loads
return cls(**kw).decode(s)
File "C:\Anaconda3\lib\json\decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 62910 (char 62909)

How can I fix this problem? Thanks a lot

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