Search
 
SCRIPT & CODE EXAMPLE
 

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())
Comment

PREVIOUS NEXT
Code Example
Python :: pandas read csv without header 
Python :: how to know if python is 64 or 32 bit 
Python :: pandas set font size plot 
Python :: downgrade pip 
Python :: write object to file python 
Python :: tensorflow plot model 
Python :: print time python 
Python :: how to display equation in tkinter 
Python :: run flask application in development mode stack overflow 
Python :: how to square each term of numpy array python 
Python :: plot normal distribution python 
Python :: python nCr n choose r function 
Python :: get file extension python 
Python :: split list into list of lists python on every n element 
Python :: extract numbers from sklearn classification_report 
Python :: python datetime minus days 
Python :: ndarray to list 
Python :: python decimal number into 8 bit binary 
Python :: calculate highest frequency or mode in pandas dataframe 
Python :: random matrix python 
Python :: pandas columns add prefix 
Python :: django desc order 
Python :: strftime python 
Python :: detect stop codon 
Python :: how to make a multichoice in python 
Python :: how to set the location on a pygame window 
Python :: virtual env in mac 
Python :: multiple loss pytorch 
Python :: how to use an indefinite number of args in python 
Python :: how to get words from a string in python 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =