Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get a list of followers on instagram python

# Get instance
import instaloader

L = instaloader.Instaloader()

# Login or load session
username = "myusername"
password = "mypassword"
L.login(username, password)  # (login)

# Obtain profile metadata
profile = instaloader.Profile.from_username(L.context, username)

# Print list of followees
follow_list = []
count = 0
for followee in profile.get_followers():
    follow_list.append(followee.username)
    file = open("prada_followers.txt", "a+")
    file.write(follow_list[count])
    file.write("
")
    file.close()
    print(follow_list[count])
    count = count + 1
# (likewise with profile.get_followers())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #followers #instagram #python
ADD COMMENT
Topic
Name
6+6 =