Home > other >  Tushare obtain box office data error
Tushare obtain box office data error

Time:10-03

>> The import tushare as ts
> Ts. Realtime_boxoffice ()
Traceback (the most recent call last) :
File "
Ts. Realtime_boxoffice ()
The File "E: \ Python \ lib \ site - packages \ tushare \ Internet \ boxoffice py", 51, the line in realtime_boxoffice
Js=json. Loads (lines. Decode (' utf-8) if ct. PY3 else lines)
The File "E: \ Python \ lib \ json \ set py", line 348, loads in
Return _default_decoder. Decode (s)
File "E: \ Python \ lib \ json \ decoder py", line 337, decode in
Obj, end=self. Raw_decode (s, independence idx=_w (s, 0). The end ())
The File "E: \ Python \ lib \ json \ decoder py", line 355, in raw_decode
Expecting the -raise JSONDecodeError (" value ", s, err... value) from None
Json. The decoder. JSONDecodeError: Expecting value: line 1 column 1 (char 0)
>
thank you
  • Related