You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: