Created
April 18, 2021 21:26
-
-
Save yusufusta/4ec72cc2e3e22502e61015504ff165b8 to your computer and use it in GitHub Desktop.
find Instagram Unfollowers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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