Skip to content

Instantly share code, notes, and snippets.

@yusufusta
Created April 18, 2021 21:26
Show Gist options
  • Save yusufusta/4ec72cc2e3e22502e61015504ff165b8 to your computer and use it in GitHub Desktop.
Save yusufusta/4ec72cc2e3e22502e61015504ff165b8 to your computer and use it in GitHub Desktop.
find Instagram Unfollowers
# pip install instagrapi
from instagrapi import Client
IG_USERNAME = ''
IG_PASSWORD = ''
cl = Client()
# cl.load_settings("user.json")
cl.login(IG_USERNAME, IG_PASSWORD)
user = cl.user_id_from_username(IG_USERNAME)
followers = cl.user_followers(user)
following = cl.user_following(user)
for follow in following:
if not follow in followers:
print(cl.username_from_user_id(follow))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment