Closed benbangli78 closed 2 years ago
It appears IG requires you to be logged in to use it. I see that the tool is trying to get the page without any cookies or authentication: content = requests.get("https://www.instagram.com/" + str(self.target) + "/?__a=1")
and getting a 404. If you log in through your browser and try to go to that page, you'll get a proper JSON response
Run a command: photodes Traceback (most recent call last): File "/home/osintgram/main.py", line 182, in
_cmd()
File "/home/osintgram/src/Osintgram.py", line 801, in get_photo_description
data = content.json()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.9/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)