Created
January 10, 2024 11:21
-
-
Save yibudak/9a9922a2ea34300963d29e579ca2e9ee to your computer and use it in GitHub Desktop.
Match Followers and Followings from Instagram Dump
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
import json | |
with open("following.json") as f: | |
following = json.load(f) | |
with open("followers_1.json") as f: | |
followers = json.load(f) | |
following = [x['string_list_data'][0]['value'] for x in following['relationships_following']] | |
followers = [x['string_list_data'][0]['value'] for x in followers] | |
# Match the followers and following and find the people who don't follow you back | |
not_following_back = [user for user in following if user not in followers] | |
for user in not_following_back: | |
print(user) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment