Unfollow

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

Python3




from instabot import Bot
 
bot = Bot()
bot.login(username="your_username",
          password="your_password")
 
# To unfollow a single person.
bot.unfollow("geeks_for_geeks")


Output:

To unfollow many people make a unfollow list then use the “unfollow_users” function.

Python3




from instabot import Bot
 
bot = Bot()
bot.login(username = "your_username",
          password = "your_password")
 
# To unfollow more person.
unfollow_list = ["user_id1", "user_id2", "user_id3", "..."]
bot.unfollow_users(unfollow_list)


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

...