Open Oyetomi opened 3 years ago
@ping @jwtrhs @AndreaOrru please kindly help me out
You could take the shortcode and convert it into media id
Code:
def shortcode_to_media_id(shortcode):
alp = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'
id = 0
for i in range(0, len(shortcode)):
char = shortcode[i]
id = (id*64) + alp.index(char)
return id
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (==> [x] no spaces).Before submitting an issue, make sure you have:
Which client are you using?
instagram_private_api/
)instagram_web_api/
)Describe your Question/Issue:
Hello Guys, I'm trying to get a users last post media_id, like this format 2431422900197522665_1985737254
Paste the output of
python -V
here: Python 3.8.5Code: