I'm trying to make a program to compare follows and followers and see who unfollows me in python using the instaloader library. all correct, but when I do get followers and get followees, and counting these values, they don't coincide with the real values โโof followed/followers of my profile.
Thats the code: (### instead of username and password)
import instaloader
import difflib
import os
from time import sleep
# Login
instaLoad = instaloader.Instaloader()
username = '###' # username
password = '###' # password
instaLoad.login(username, password)
profile = instaloader.Profile.from_username(instaLoad.context, "###")
followers_list = []
following_list = []
follower = profile.get_followers()
following = profile.get_followees()
c = 0
# Persone that follow me
for f in follower:
followers_list.append(f.username)
c = c + 1
print("You have ", c, " folloers")
c = 0
#People i follow
for f in following:
following_list.append(f.username)
c = c + 1
print("Ypu follow ", c, " people")
print(followers_list)
print(following_list)
persone_no = []
for i in following_list:
if not i in followers_list:
persone_no.append(i)
print("Lista of people that don't follow me back:")
for i in persone_no:
print(i)
The numbers that the program gives me do not coincide with the real ones. above all, the number of people who follow me stops at 50.