Skip to content

Instantly share code, notes, and snippets.

@yibudak
Created January 10, 2024 11:21
Show Gist options
  • Save yibudak/9a9922a2ea34300963d29e579ca2e9ee to your computer and use it in GitHub Desktop.
Save yibudak/9a9922a2ea34300963d29e579ca2e9ee to your computer and use it in GitHub Desktop.
Match Followers and Followings from Instagram Dump
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