hexalogy

piccerapp - Unfollow

May 9th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.63 KB | None | 0 0
  1. """
  2. This template is written by @cormo1990
  3.  
  4. What does this quickstart script aim to do?
  5. - Basic follow/unfollow activity.
  6.  
  7. NOTES:
  8. - I don't want to automate comment and too much likes because I want to do
  9. this only for post that I really like the content so at the moment I only
  10. use the function follow/unfollow.
  11. - I use two files "quickstart", one for follow and one for unfollow.
  12. - I noticed that the most important thing is that the account from where I
  13. get followers has similar contents to mine in order to be sure that my
  14. content could be appreciated. After the following step, I start unfollowing
  15. the user that don't followed me back.
  16. - At the end I clean my account unfollowing all the users followed with
  17. InstaPy.
  18. """
  19.  
  20. # imports
  21. from instapy import InstaPy
  22. from instapy import smart_run
  23.  
  24. # login credentials
  25. insta_username = ''
  26. insta_password = ''
  27.  
  28. # get an InstaPy session!
  29. # set headless_browser=True to run InstaPy in the background
  30. session = InstaPy(username=insta_username,
  31.                   password=insta_password,
  32.                   headless_browser=True)
  33.  
  34. with smart_run(session):
  35.     """ Activity flow """
  36.     # general settings
  37.     session.set_quota_supervisor(enabled=True,
  38.                               stochastic_flow=True,
  39.                               peak_likes=(100, None),
  40.                               peak_comments=(21, None),
  41.                               peak_follows=(100, 120))
  42.                               peak_unfollows=(100, 250)
  43.        
  44.     session.set_action_delays(enabled=True,
  45.                               like=6,
  46.                               comment=15,
  47.                               follow=26,
  48.                               unfollow=36)
  49.  
  50.     session.set_relationship_bounds(enabled=True,
  51.                                     delimit_by_numbers=True,
  52.                                     max_followers=4590,
  53.                                     min_followers=45,
  54.                                     min_following=77)
  55.  
  56.     session.set_dont_include(["friend1", "friend2", "friend3"])
  57.     session.set_dont_like(["pizza", "#store"])
  58.  
  59.     # activities
  60.  
  61.     """ Massive Follow of users followers (I suggest to follow not less than
  62.    3500/4000 users for better results)...
  63.    """
  64.     #session.follow_user_followers(['unh_alphachiomega', 'scope_unh', 'unh_ato'], amount=10,
  65.     #                              randomize=False, interact=False, sleep_delay=701)
  66.  
  67.     """ First step of Unfollow action - Unfollow not follower users...
  68.    """
  69.    
  70.     session.unfollow_users(amount=750, nonFollowers=True, style="FIFO", unfollow_after=1*60*60, sleep_delay=655)
  71.  
  72.     """ Second step of Massive Follow...
  73.    """
  74.     #session.follow_user_followers(['unhfieldhockey', 'unhdanceteam', 'unh_sigmanu'], amount=25,
  75.     #                              randomize=False, interact=False, sleep_delay=701)
  76.  
  77.  
  78.     """ Clean all followed user - Unfollow all users followed by InstaPy...
  79.    """
  80.     #session.unfollow_users(amount=100, InstapyFollowed=(True, "all"),
  81.     #                       style="FIFO", unfollow_after=24 * 60 * 60,
  82.     #                       sleep_delay=601)
  83.  
  84.    
  85.     """ Joining Engagement Pods...
  86.    """
  87.     photo_comments = ['Nice shot! @{}',
  88.         'Awesome! @{}',
  89.         'Cool :thumbsup:',
  90.         'Just incredible :open_mouth:',
  91.         'What camera did you use @{}?',
  92.         'Love your posts @{}',
  93.         'Looks awesome @{}',
  94.         'Nice @{}',
  95.         ':raised_hands: Yes!',
  96.         'I can feel your passion @{} :muscle:']
  97.  
  98.     session.set_do_comment(enabled = True, percentage = 95)
  99.     session.set_comments(photo_comments, media = 'Photo')
  100.     session.join_pods()
Advertisement
Add Comment
Please, Sign In to add comment