Open MMcintire96 opened 5 years ago
Still working? Got an error.
x = requests.get(self._data['instagram']['photos'][0]['link']).text
KeyError: 'link'
No, it appears that the api has changed and now the Instagram[] does not contain "photos". I searched through the useable content in Instagram[] ("image", "thumbnail" and "profile_photo") but they all appear to be links to the cdn. The cdn's page has no way of locating the user.
I think this has been changes with FB/IG's protocol rather than Tinder's, but unfortunately I can't find any way to get instagram_username anymore.
Here is my proposed fix, if someone wants to make it use the python standard html.parser library that would be much appreciated. Also code is not tested formally but seems to work for most situations (picture, private_user, normal_user).