Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. # imports
  2. import random
  3. from instapy import InstaPy
  4. from instapy.util import smart_run
  5. # login credentials
  6. insta_username = 'sexy'
  7. insta_password = 'config'
  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. nogui=True)
  14. with smart_run(session):
  15. """ Activity flow """
  16. # general settings
  17. hashtags = ['retro', 'cyberpunk', 'retroart', 'retrolife', 'retrostyle',
  18. 'retrofuture', 'retrofuturism', 'retrocommunity', 'vintage',
  19. 'instaretro', 'classic', '80s', 'retrowave', 'synthwave',
  20. 'oldschool', 'hipster', 'nostalgia', 'oldies', '80s','music',
  21. 'art']
  22. random.shuffle(hashtags)
  23. my_hashtags = hashtags[:4]
  24. session.set_do_follow(enabled=True, percentage=40, times=1)
  25. session.set_do_like(enabled=True, percentage=90)
  26. session.set_do_comment(enabled=True, percentage=10)
  27. session.set_comments([u'Thats just amazing! :heart_eyes:',
  28. u'Sooo lit :fire:',
  29. u'Awesome :thumbsup: !',
  30. u'I dig it :wink:',
  31. u'Remarkable :heart_eyes: Just remarkable',
  32. u'This is intense!! :heart_eyes:',
  33. u'Superb pic :fire:',
  34. u'Thrilling pic :wink:',
  35. u'Interesting :smiley:',
  36. u'Great pic!! :smiley: :thumbsup:'],
  37. media='Photo')
  38. session.set_relationship_bounds(enabled=True,
  39. delimit_by_numbers=True,
  40. potency_ratio=None,
  41. max_followers=5553,
  42. min_followers=25,
  43. min_following=35)
  44. session.set_delimit_liking(enabled=True, max=95, min=0)
  45. session.set_delimit_commenting(enabled=True, max=20, min=0)
  46.  
  47. session.set_quota_supervisor(enabled=True, sleep_after=["likes", "follows"], sleepyhead=True, stochastic_flow=$
  48. peak_likes=(150, 950),
  49. peak_comments=(18, 110),
  50. peak_follows=(65, 400))
  51. session.set_user_interact(amount=1, randomize=False, percentage=50, media='Photo')
  52. # activity
  53. session.like_by_tags(my_hashtags, amount=40, media=None)
  54. session.unfollow_users(amount=250, InstapyFollowed=(True, "nonfollowers"), style="FIFO", unfollow_after=12*60*$
  55. session.unfollow_users(amount=250, InstapyFollowed=(True, "all"), style="FIFO", unfollow_after=24*60*60, sleep$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement