Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from instapy import InstaPy
- from instapy.util import smart_run
- # login credentials
- insta_username = ''
- insta_password = ''
- # get an InstaPy session!
- # set headless_browser=True to run InstaPy in the background
- session = InstaPy(username=insta_username,
- password=insta_password,
- headless_browser=True)
- with smart_run(session):
- """ Activity flow """
- # settings
- session.set_relationship_bounds(enabled=True,
- delimit_by_numbers=True,
- max_followers=2000,
- max_following=3500,
- min_followers=25,
- min_following=25)
- session.set_skip_users(skip_private=True,
- skip_business=True,
- business_percentage=100)
- # actions
- session.follow_user_followers(['dommazzetti','dansbod', 'bradleymartyn'], amount=800, randomize=False, interact=False)
- session.unfollow_users(amount=800, InstapyFollowed=(True, "all"), style="FIFO", unfollow_after=48*60*60)
Add Comment
Please, Sign In to add comment