Twitter stream API gives JSONDecodeError(“Expecting value”, s, err.value) from None
问题 I am using the stream API of Twitter (through tweepy) to collect tweets matching certain criteria, but when I use json.loads() to parse the created jsonl file I get this following error: File "twitter_time_series.py", line 19, in <module> tweet = json.loads(line) File "C:\Program Files\Anaconda3\lib\json\__init__.py", line 319, in loads return _default_decoder.decode(s) File "C:\Program Files\Anaconda3\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end())