Skip to content

Instantly share code, notes, and snippets.

@eduolihez
Created February 28, 2023 20:51
Show Gist options
  • Save eduolihez/39cedd14e431d6a0b734230a942faf53 to your computer and use it in GitHub Desktop.
Save eduolihez/39cedd14e431d6a0b734230a942faf53 to your computer and use it in GitHub Desktop.
Instagram get ID from Username
import instaloader
L = instaloader.Instaloader()
profile = instaloader.Profile.from_username(L.context, 'username')
print(profile.userid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment