I'm trying to pull data from a website. I'm using Python request:
users = requests.get('website name here', headers=headers).json()
I'm getting this error:
raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I know that the data i'm pulling is JSON, which is one of the issues that other people were getting with this error message. My guess is, because there's a username and password required to access the site, it's giving me this error. Could that be it? If so, how can i fix that? I don't want to include my login information in my Python program.
Edit: I now know that authorization was not the issue because i created an authorization token and i'm still getting the same issue.