Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. """ Quickstart script for InstaPy usage """
  2.  
  3. # imports
  4. from instapy import InstaPy
  5. from instapy import smart_run
  6. from instapy import set_workspace
  7.  
  8. # set workspace folder at desired location (default is at your home folder)
  9. set_workspace(path=None)
  10.  
  11. # get an InstaPy session!
  12. session = InstaPy(username="the_olivera",
  13. password="HA! GUESS WHAT? NOT A RETARD")
  14.  
  15. with smart_run(session):
  16. """ Activity flow """
  17. # general settings
  18. session.set_dont_unfollow_active_users(enabled=True, posts=5)
  19. session.set_mandatory_language(enabled=True, character_set='LATIN')
  20. session.set_quota_supervisor(enabled=True, sleep_after=["likes", "comments_d", "follows", "unfollows", "server_calls_h"], sleepyhead=True, stochastic_flow=True, notify_me=True,
  21. peak_likes=(57, 585),
  22. peak_comments=(21, 182),
  23. peak_follows=(48, None),
  24. peak_unfollows=(35, 402),
  25. peak_server_calls=(None, 4700))
  26. # activity
  27. # session.like_by_tags(["natgeo"], amount=10)
  28.  
  29. #Follow a certain couple of accounts
  30. big_guys = ['natgeo.la',
  31. 'natgeoexpeditions',
  32. 'natgeotravel',
  33. 'natgeoyourshot',
  34. 'beautifuldestinations',
  35. 'natgeo',
  36. 'nature.and.everything.about.it',
  37. 'earthpix',
  38. 'earthfocus',
  39. 'hikeyourownlife',
  40. 'discoverearth',
  41. ]
  42. small_guys = ['backpackinglife',
  43. 'amaiysumochila',
  44. 'omelhormesdoano',
  45. 'hikeyourownlife',
  46. 'olharesdesampa',
  47. 'fotoxigenio_',
  48. 'travelingdreams101',
  49. 'siteculturasp',
  50. 'republic.of.symmetry',
  51. 'untitledphotoss',
  52. 'ligadosemsampa',
  53. 'sampaworld',
  54. '_photo_du_jour',
  55. 'adamkarnacz',
  56. 'gguillis',
  57. 'mylittlenorthwaleslife',
  58. 'parquesnacionales',
  59. 'pautagonialaska',
  60. 'aventuraslatam']
  61. tag_list=["chiloeisland",
  62. "chonchi",
  63. "ig_chile",
  64. "backpacksouthamerica",
  65. "natgeo100contest",
  66. "natgeoexpeditions",
  67. "natgeotravel",
  68. "omelhormesdoano",
  69. "republic_of_symmetry",
  70. "untitledphotos",
  71. "WildernessCulture",
  72. "nikon",
  73. "landscapephotography",
  74. "WildernessEarth",
  75. "chile",
  76. ]
  77.  
  78. #Follow this list of important people
  79. session.follow_by_list(followlist = big_guys, times=1, sleep_delay=600, interact=False)
  80. #Follow this list of people who are interested in my tags but that aren't bots
  81. session.follow_user_followers(small_guys, amount=10, randomize=False, sleep_delay=60)
  82. #Follow some random people because why not?
  83. session.follow_by_tags(tag_list, amount=10)
  84. #Like some stuff so you seem alive
  85. session.like_by_tags(tag_list, amount=10)
  86. #Unfollow a certain couple of accounts
  87. session.unfollow_users(amount=200, customList=(True, big_guys, "all"), #Unfollow the big guys
  88. InstapyFollowed=(True, "nonfollowers"), #Unfollower the random people if they don't follow you back
  89. nonFollowers=True, #Clean my account (again, why not?)
  90. allFollowing=False, #I don't want this
  91. style="FIFO", unfollow_after=22*60*60, sleep_delay=600)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement