Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. GNU nano 2.0.6 File: quickstart.py
  2.  
  3. """ Quickstart script for InstaPy usage """
  4. # imports
  5. from instapy import InstaPy
  6. from instapy.util import smart_run
  7.  
  8. # login credentials
  9. insta_username = 'xxxxxxxxxxx'
  10. insta_password = 'xxxxxxxxxxx'
  11.  
  12. # get an InstaPy session!
  13. # set headless_browser=True to run InstaPy in the background
  14. session = InstaPy(username=insta_username,
  15. password=insta_password,
  16. headless_browser=False)
  17.  
  18. with smart_run(session):
  19. """ Activity flow """
  20. # general settings
  21. session.set_relationship_bounds(enabled=True,
  22. delimit_by_numbers=True,
  23. max_followers=5000,
  24. min_followers=50,
  25. min_following=50)
  26.  
  27. session.set_dont_include(["friend1", "friend2", "friend3"])
  28. session.set_dont_like(["pizza", "#store"])
  29.  
  30. # activity
  31. session.like_by_tags(["marketing"], amount=10)
  32. session.follow_user_followers(['kajetanhubner'], amount=10, randomize=False, sleep_delay=60)
  33. session.unfollow_users(amount=126, nonFollowers=True, style="RANDOM", unfollow_after=42*60*60, sleep_delay=655)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement