In [1]:
import sys
sys.path.append('../../')
from instabot import User, Sender
Login users to be used in instabot. I suggest you to add as many users as you have because all get requests will be parallized between them to distribute the Instagram servers load.
In [2]:
_ = User('instabotproject', 'password')
_ = User("user_for_scrapping1", "password")
_ = User("user_for_scrapping2", "password")
_ = User("user_for_scrapping3", "password")
Init the Sender class with the main user's username. This user will be used to put likes / follows and other activity stuff.
In [3]:
send = Sender("instabotproject")
In [4]:
geo_name = "МФТИ"
send.like_geo_medias(geo_name, total=100, delay=5)
Out[4]:
To follow someone's followers code like this
In [5]:
follow_followers_of = "ohld"
send.follow_followers(follow_followers_of, total=10, delay=10)
Out[5]: