Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import os
  4. import sys
  5. import time
  6.  
  7. sys.path.append(os.path.join(sys.path[0], 'src'))
  8.  
  9. from check_status import check_status
  10. from feed_scanner import feed_scanner
  11. from follow_protocol import follow_protocol
  12. from instabot import InstaBot
  13. from unfollow_protocol import unfollow_protocol
  14.  
  15. bot = InstaBot(
  16. login="lukaskuhnx",
  17. password="xxxx",
  18. like_per_day=1000,
  19. comments_per_day=50,
  20. tag_list=['motivation', 'startup', 'hustle', 'travel', 'photography', 'streetstyle', 'urban', 'minimalist', 'luxury', 'cars', 'sport'],
  21. tag_blacklist=[],
  22. user_blacklist={},
  23. max_like_for_one_tag=50,
  24. follow_per_day=500,
  25. follow_time=1 * 60,
  26. unfollow_per_day=500,
  27. unfollow_break_min=1,
  28. unfollow_break_max=5,
  29. log_mod=0,
  30. proxy='',
  31. # List of list of words, each of which will be used to generate comment
  32. # For example: "This shot feels wow!"
  33. comment_list=[["this", "the", "your"],
  34. ["photo", "picture", "pic", "shot", "snapshot"],
  35. ["is", "looks", "feels", "is really"],
  36. ["great", "super", "good", "very good", "good", "wow",
  37. "WOW", "cool", "GREAT","magnificent", "magical",
  38. "very cool", "stylish", "beautiful", "so beautiful",
  39. "so stylish", "so professional", "lovely",
  40. "so lovely", "very lovely", "glorious","so glorious",
  41. "very glorious", "adorable", "excellent", "amazing"],
  42. [".", "..", "...", "!", "!!", "!!!"]],
  43. # Use unwanted_username_list to block usernames containing a string
  44. ## Will do partial matches; i.e. 'mozart' will block 'legend_mozart'
  45. ### 'free_followers' will be blocked because it contains 'free'
  46. unwanted_username_list=[],
  47. unfollow_whitelist=['loganpaul', 'lizakoshy', 'daviddobrik', 'lkbphotography', 'thenotoriousmma', 'maxii_96_w', 'marteria', 'eeella_023', 'allisaviolet', 'annikainstgrm_', 'alexisren', 'alyssalynch', 'ariannahicks', 'timlutterbach', 'billy', 'garyvee', 'kylierae', 'lisa.maria13', 'jacob', 'danielbonhard', 'leams97', 'sam_kolder', 'paulripke', 'larissariess', 'kimsina__', 'douchebags', 'jhonnykeil', 'caseyneistat', 'karoline.kuhn', 'missmne', 'schlockii', 'janina_pr', 'maximilian_gatz', 'carlosmiguelsch', 'annikafaerber', 'julia_kess', 'aliciia_griffaton', 'marinebluehorizon', 'kirrez', 'a.dautzenberg', '_julianstark_', 'jule_pdm', 'marvingolz', 'hofmann_lara', 'franzieiser', 'laetitia.mariaa', 'leon_ftw', 'pieterheine', 'gabbemorin', 'radny.nic', 'carolina_vittoria', 'dwali_m', 'liiinnnaaas', 'frederikeinka', 'sophiarho', 'marielightbody', 'lotti_austria''])
  48. while True:
  49.  
  50. #print("# MODE 0 = ORIGINAL MODE BY LEVPASHA")
  51. #print("## MODE 1 = MODIFIED MODE BY KEMONG")
  52. #print("### MODE 2 = ORIGINAL MODE + UNFOLLOW WHO DON'T FOLLOW BACK")
  53. #print("#### MODE 3 = MODIFIED MODE : UNFOLLOW USERS WHO DON'T FOLLOW YOU BASED ON RECENT FEED")
  54. #print("##### MODE 4 = MODIFIED MODE : FOLLOW USERS BASED ON RECENT FEED ONLY")
  55. #print("###### MODE 5 = MODIFIED MODE : JUST UNFOLLOW EVERYBODY, EITHER YOUR FOLLOWER OR NOT")
  56.  
  57. ################################
  58. ## WARNING ###
  59. ################################
  60.  
  61. # DON'T USE MODE 5 FOR A LONG PERIOD. YOU RISK YOUR ACCOUNT FROM GETTING BANNED
  62. ## USE MODE 5 IN BURST MODE, USE IT TO UNFOLLOW PEOPLE AS MANY AS YOU WANT IN SHORT TIME PERIOD
  63.  
  64. mode = 0
  65.  
  66. #print("You choose mode : %i" %(mode))
  67. #print("CTRL + C to cancel this operation or wait 30 seconds to start")
  68. #time.sleep(30)
  69.  
  70. if mode == 0:
  71. bot.new_auto_mod()
  72.  
  73. elif mode == 1:
  74. check_status(bot)
  75. while bot.self_following - bot.self_follower > 200:
  76. unfollow_protocol(bot)
  77. time.sleep(10 * 60)
  78. check_status(bot)
  79. while bot.self_following - bot.self_follower < 400:
  80. while len(bot.user_info_list) < 50:
  81. feed_scanner(bot)
  82. time.sleep(5 * 60)
  83. follow_protocol(bot)
  84. time.sleep(10 * 60)
  85. check_status(bot)
  86.  
  87. elif mode == 2:
  88. bot.bot_mode = 1
  89. bot.new_auto_mod()
  90.  
  91. elif mode == 3:
  92. unfollow_protocol(bot)
  93. time.sleep(10 * 60)
  94.  
  95. elif mode == 4:
  96. feed_scanner(bot)
  97. time.sleep(60)
  98. follow_protocol(bot)
  99. time.sleep(10 * 60)
  100.  
  101. elif mode == 5:
  102. bot.bot_mode = 2
  103. unfollow_protocol(bot)
  104.  
  105. else:
  106. print("Wrong mode!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement