Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. from instapy import InstaPy
  2. from instapy import smart_run
  3.  
  4. # login credentials
  5. insta_username = ''
  6. insta_password = ''
  7.  
  8. # get an InstaPy session!
  9. # set headless_browser=True to run InstaPy in the background
  10. session = InstaPy(username=insta_username,
  11. password=insta_password,
  12. headless_browser=True)
  13.  
  14. with smart_run(session):
  15.  
  16. session.set_relationship_bounds(enabled=True, delimit_by_numbers=True, max_followers=4590, min_followers=45, min_following=77)
  17.  
  18. session.follow_by_tags(['teste1'], amount=500)
  19.  
  20. session.follow_user_followers(['teste1','teste2'], amount=4590, randomize=False, interact=False)
  21.  
  22. session.unfollow_users(amount=500, InstapyFollowed=(True, "nonfollowers"), style="FIFO", unfollow_after=24 * 60 * 60, sleep_delay=601)
  23.  
  24. session.join_pods()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement