Skip to content

Instantly share code, notes, and snippets.

@Isopach
Created November 19, 2023 23:02
Show Gist options
  • Save Isopach/8c204be8eff3c0efdfcb81d4196f9ab5 to your computer and use it in GitHub Desktop.
Save Isopach/8c204be8eff3c0efdfcb81d4196f9ab5 to your computer and use it in GitHub Desktop.
Check Instagram Follows who don't follow back
#!/usr/bin/env python3
"""
1. Go to https://accountscenter.instagram.com/info_and_permissions/dyi/
2. Select 'Request Download'
3. Select Followers & Following
4. Select 'All time' (default is 'Last Year')
5. Select 'Json' (default is 'HTML')
6. Download the data
7. Unzip and put this file into the same directory
8. Change your follower/following count to match your instagram numbers
USAGE: python3 diff.py
"""
import json
num_followers =
num_following =
with open('followers_1.json', 'r') as f1:
array1 = json.load(f1)
followers = []
for i in range(0,num_followers):
followers.append(array1[i]['string_list_data'][0]['value'])
with open('following.json', 'r') as f2:
array2 = json.load(f2)
following = []
for i in range(0,num_following):
following.append(array2["relationships_following"][i]['string_list_data'][0]['value'])
diff_list = list(set(following).difference(followers))
print(diff_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment