Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 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.util import smart_run
  23.  
  24. # login credentials
  25. insta_username = 'd'
  26. insta_password = 'd'
  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=False)
  33.  
  34. with smart_run(session):
  35. """ Activity flow """
  36. # general settings
  37. session.set_relationship_bounds(enabled=True,
  38. delimit_by_numbers=True,
  39. max_followers=4590,
  40. min_followers=45,
  41. min_following=77)
  42.  
  43. session.set_dont_include(["friend1", "friend2", "friend3"])
  44. session.set_dont_like(["pizza", "#store"])
  45.  
  46. # activities
  47.  
  48. """ Massive Follow of users followers (I suggest to follow not less than
  49. 3500/4000 users for better results)...
  50. """
  51. session.follow_user_followers(['bluefacebleedem', 'akadmiks', 'lilpeep'], amount=140,
  52. randomize=False, interact=False)
  53.  
  54. """ First step of Unfollow action - Unfollow not follower users...
  55. """
  56. session.unfollow_users(amount=89, InstapyFollowed=(True, "nonfollowers"),
  57. style="FIFO",
  58. unfollow_after=12 * 60 * 60, sleep_delay=601)
  59.  
  60. """ Second step of Massive Follow...
  61. """
  62. session.follow_user_followers(['liluzivert', 'souljaboy', 'trippieredd'], amount=130,
  63. randomize=False, interact=False)
  64.  
  65. """ Second step of Unfollow action - Unfollow not follower users...
  66. """
  67. session.unfollow_users(amount=102, InstapyFollowed=(True, "nonfollowers"),
  68. style="FIFO",
  69. unfollow_after=12 * 60 * 60, sleep_delay=601)
  70.  
  71. """ Clean all followed user - Unfollow all users followed by InstaPy...
  72. """
  73. session.unfollow_users(amount=98, InstapyFollowed=(True, "all"),
  74. style="FIFO", unfollow_after=24 * 60 * 60,
  75. sleep_delay=601)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement