-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I get the error below on some dates. Why that is and how can I fix it? Thank you :/
File "C:\Users\apavl\reddit\download_data_from_reddit.py", line 95, in <module>
data = get_pushshift_data(key_word, after, before, sub_reddit)
File "C:\Users\apavl\reddit\download_data_from_reddit.py", line 15, in get_pushshift_data
data = json.loads(r.text)
File "C:\Users\apavl\anaconda3\envs\reddit\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\apavl\anaconda3\envs\reddit\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\apavl\anaconda3\envs\reddit\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Expecting value
Metadata
Metadata
Assignees
Labels
No labels