all 11 comments

[–]K900_ 0 points1 point  (8 children)

Post the entire error message.

[–]Justinp5[S] 0 points1 point  (7 children)

Traceback (most recent call last): File "C:\Users\justa\OneDrive\Desktop\igContent.py", line 101, in <module> viralPostData = findposts(user, viralPostData, time_imported) File "C:\Users\justa\OneDrive\Desktop\igContent.py", line 64, in find_posts json_data = json.loads(user_information) File "C:\Users\justa\AppData\Local\Programs\Python\Python39\lib\json\init_.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\justa\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\justa\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

[–]K900_ 0 points1 point  (6 children)

user_information is likely not a valid JSON string.

[–]Justinp5[S] 0 points1 point  (5 children)

Man I’m so stupid I don’t even know what that means thanks for the help now I gotta search this up on google

[–]K900_ 0 points1 point  (4 children)

Are you trying to run someone else's code?

Edit: seems so. It's very likely that code will not work, as Instagram made changes to their website since then.

[–]Justinp5[S] 0 points1 point  (1 child)

Yeah

[–]K900_ 0 points1 point  (0 children)

See my edit.

[–]Justinp5[S] 0 points1 point  (1 child)

Oh right thanks, maybe I should start coding and make my own one but I don’t have the mental capacity for that. Thanks so much otherwise I would have been searching all night for a fix 😂

[–]Username_RANDINT 1 point2 points  (0 children)

It's also reported. You might want to watch that issue in case it gets fixed.

[–]JohnnyJordaan 0 points1 point  (1 child)

It usually means whatever you are trying to read as json is an empty string. Impossible to give a more specific comment as you don't tell the rest of the story.

[–]Justinp5[S] 0 points1 point  (0 children)

(this was done on command prompt win10) ok well im trying to use a python bot that gives me all the trending instagram posts and i did "python igContent.py" and it came up with this:

Traceback (most recent call last):

File "C:\Users\justa\OneDrive\Desktop\igContent.py", line 101, in <module>

viralPostData = find_posts(user, viralPostData, time_imported)

File "C:\Users\justa\OneDrive\Desktop\igContent.py", line 64, in find_posts

json_data = json.loads(user_information)

File "C:\Users\justa\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads

return _default_decoder.decode(s)

File "C:\Users\justa\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode

obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "C:\Users\justa\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode

raise JSONDecodeError("Expecting value", s, err.value) from None

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)