Count the number of followers

We can check the number of our own followers or anyone followers using the “get_user_followers” function. This function makes a list of followers id.

Python3




from instabot import Bot
 
bot = Bot()
bot.login(username="your_username",
          password="your_password")
 
# Count number of followers
followers = bot.get_user_followers("geeks_for_geeks")
print("Total number of followers:")
print(len(followers))


Output:        

How to Make an Instagram Bot With Python and InstaBot?

In this article, we are going to see how to make an Instagram bot using Python and InstaBot.

Bots are really common these days to send messages, upload photos, send wishes, and many more things.  Bots reduce our work, save time. Today we are creating an Instagram bot that can do the following things. 

Similar Reads

Functions performed by the bot

Follow one or more of friends. Unfollow one or a list of persons. Unfollow everyone. Count the number of followers of any user. Send messages to followers or a list of followers. Send like on chat. Post photos....

Login

Before performing any of the login() functions we need to import instabot library and login first....

Follow

...

Unfollow

To follow one friend we can use follow() function....

Unfollow everyone

...

Count the number of followers

...

Send messages

To unfollow one person we will use unfollow() function....

Send Like messages

...

Post Photo

...