Instagram Follower Bot Project with Python

Instagram Follower Bot Project with Python

·

1 min read

InstaPy is an library which anyone can use to create Instagram Bots. With this project you can code Instagram bot to follow profiles of profile you follow. In an simple manner,you can follow friends of your friends. This bot will start follow one by one with time interval of 10 seconds. Since instagram monitors bot functions regularly we are giving time interval. You can limit the number of minimum and maximum followers in your friends account.

Note: Instagram regularly monitor the bot functions. so use at your own risk.

Install InstaPy Library with the command pip install instapy

Save the below code as instabot.py and run the script.

from instapy import InstaPy, smart_run
import time

# login credentials
username = 'username'
password = 'password'

# function to run instabot
def run():
    new_session = InstaPy(username=username,
                    password=password,
                    headless_browser=True)

    with smart_run(new_session):
        new_session.set_relationship_bounds(enabled=True,
                                        delimit_by_numbers=True,
                                        max_followers=4590,
                                        min_followers=100,
                                        min_following=50)

        new_session.follow_user_followers(['friendsaccount'], amount=100,
                                  randomize=False, interact=False)

while True:
    run()
    time.sleep(10)