Instapy: discussion: save user_id also with to usernames.

Created on 22 Jun 2018  路  14Comments  路  Source: timgrossmann/InstaPy

So if someone change his username we don't have a lost data.
I think user id can't change while username can.

discussion wontfix

All 14 comments

@sionking Interesting, I'm also wondering the same, what happen if a user change it's user name. I also think that user id will be the same.

I get many times username not avaialbe after trying to unfollow, so it either deleted or renamed.

@sionking where can we take the userid , what page / api ?

Thanks

@sionking @ilmetu I saw user id in graphql, I don't remember where, but I remember, that was there.

@marcomokastyle i think is in a json hidden in the instagram page when logged in...

@ilmetu exactly,is what a meant to say. should be in window._sharedData = {...}

@ilmetu @sionking _sharedData.entry_data.ProfilePage[0].graphql.user.id

How can we convert userId to username, that is my concern ...

@sionking we must check if there is a way to get from public api. And I'm not sure if is possible right now.

Why public API if it is possible from _sharedData.entry_data.ProfilePage[0].graphql.user.id ??

@sionking but if user name is changed how can we get the new user name? I'm wondering if is possible to get user name from user id. _sharedData is taken from the profile page url. So if user is not anymore the same... I don't know yet if we can get the username from a graphql query from https://www.instagram.com/graphql/query/

@marcomokastyle that is what I was think also....

If you search for a username that no longer exists, Instagram often suggests the new username. If we have the original and new id, we can confirm that it's indeed the correct account.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. > If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harrypython picture harrypython  路  3Comments

drcyber975 picture drcyber975  路  3Comments

neomh picture neomh  路  3Comments

v77v picture v77v  路  3Comments

seuraltimez picture seuraltimez  路  3Comments