So people won't use sketchy 3rd party apps! :,)
To use this script, you’ll need to download two specific files from your Instagram Accounts Center: You can either request all your data or "some of your data", in the latter case you may select:
- Followers and Following
Make sure you also select:
- Date range: All time
- Format: JSON
Once downloaded, extract the files and place these two JSON files in the same directory as the Python script.
As of April 2025, Instagram names these files:
FOLLOWING_FILE_NAME = "following.json"
FOLLOWERS_FILE_NAME = "followers_1.json"
# If you renamed the files or want to use full paths instead, you can customize:
FULL_PATH_FOLLOWING = "ENTER_FULL_PATH/following.json"
FULL_PATH_FOLLOWERS = "ENTER_FULL_PATH/followers_1.json"
# Notice: Use full paths if you're getting a FileNotFoundError (e.g. VSCode not running the script from the actual script location).For non tech savvies. Files must be named: "following.json" and "followers_1.json" and put together in the same folder as main.exe
