SHARE
TWEET

Untitled

a guest Sep 10th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # imports
  2. from instapy import InstaPy
  3. from instapy import smart_run
  4. import random
  5.  
  6. # login credentials
  7. insta_username = ''
  8. insta_password = ''
  9.  
  10. # get an InstaPy session!
  11. # set headless_browser=True to run InstaPy in the background
  12. session = InstaPy(username=insta_username,
  13.                   password=insta_password,
  14.                   use_firefox=True,
  15.                   headless_browser=True,
  16.                   disable_image_load=True,
  17.                   multi_logs=True)
  18.  
  19. # Session Successful, Time to go!
  20. with smart_run(session):
  21.  
  22.     # Varibles Here.
  23.  
  24.     ignoreUsers = ['']
  25.  
  26.     # Amount Varibles.
  27.  
  28.     # Red Banner Text.
  29.     red = lambda text: '\033[0;31m' + text + '\033[0m'
  30.  
  31.     myHashTags = [ 'witchesofinstagram', 'magick' 'crystalhealing']
  32.     myTargets = ['the_malewitch', 'hbadessa', 'theviking_forestwitch', 'flowersforhan','coventrycandles', 'magickwick', 'when_the_sun_rises']
  33.    
  34.    
  35.     # Shuffle myTargets.
  36.     shuffleT = (random.sample(myTargets,1))
  37.     shuffleS = (random.sample(myTargets,2))
  38.     shuffleM = (random.sample(myTargets,3))
  39.     shuffleL = (random.sample(myTargets,4))
  40.  
  41.     tinyAmount = (random.randint(2, 4))
  42.     smallAmount = (random.randint(5, 10))
  43.     mediumAmount = (random.randint(10, 15))
  44.     largeAmount = (random.randint(15, 30))
  45.  
  46.     bannedWords = ['#ad', 'promo', '#store', '#everyday', 'tattoo', '#marketing', '#tattoos', '#cg', 'dick', 'squirt',
  47.     'gay', 'homo', '#fit', '#goth', '#lucifer', '#satan', '#666', '#children', '#child', '[nazi', 'jew', 'judaism', '[muslim', '[islam',
  48.     'bangladesh','[hijab', '[niqab','[farright', '[rightwing', '#conservative', 'death', 'instaporn', 'instagirls', 'instagirl', 'instaxxx',
  49.     'instafreeporn', 'instansfw', 'instawomen', 'instapics', 'instafucking', 'instablowjob', 'instastar', 'instapictures', 'instapornstar',
  50.     'instaporno', 'instaass', 'instaadult', 'instapussy', 'nsfw', 'nugoth', 'hijab', 'niqab', 'religion', 'shirtless', 'fitness', 'yamaka', 'rightwing']
  51.  
  52.     myComments = [':heart_eyes:',
  53.                         ':raised_hands:',
  54.                         ':pray:',
  55.                         ':clap:',
  56.                         ':sparkles: :pray:',
  57.                         ':fire:',
  58.                         ':ok_hand:',
  59.                         'diggin this post :raised_hands:',
  60.                         'cool post',
  61.                         ':heart_eyes:']
  62.  
  63. # Global Settings.
  64.  
  65.     # Set Blacklist Campaign. # Don't spam the same people with requests.
  66.     session.set_blacklist(enabled=True, campaign='magick')
  67.  
  68.     # Restrictions Applied. # I Am The Boucer!
  69.     session.set_dont_include(bannedWords)
  70.     session.set_dont_like(bannedWords)
  71.     session.set_ignore_if_contains(bannedWords)
  72.     session.set_ignore_users(ignoreUsers)
  73.  
  74.  
  75.     # Hail The Queen Supervisor Quota!
  76.     session.set_quota_supervisor(enabled=True,
  77.                                  sleep_after=["likes", "comments", "follows", "unfollows", "server_calls"],
  78.                                  sleepyhead=True,
  79.                                  stochastic_flow=True,
  80.                                  notify_me=True,
  81.                                  peak_likes=(mediumAmount, 500),
  82.                                  peak_comments=(smallAmount, 500),
  83.                                  peak_follows=(smallAmount, 50),
  84.                                  peak_unfollows=(100, 500),
  85.                                  peak_server_calls=(5000, 20000))
  86.  
  87.     # Action Delays. # Sleep When I Say And For How Long!
  88.     session.set_action_delays(enabled=True,
  89.                               like=70,
  90.                               comment=70,
  91.                               follow=60,
  92.                               unfollow=50,
  93.                               randomize=True,
  94.                               random_range=(450, 4940))
  95.  
  96.     # Set Relationship Bounds. # Target Users.
  97.     session.set_relationship_bounds(enabled=True,
  98.                                     potency_ratio=-1.1,
  99.                                     delimit_by_numbers=True,
  100.                                     max_followers=30000,
  101.                                     max_following=30000,
  102.                                     min_followers=1,
  103.                                     min_following=5,
  104.                                     max_posts=5000,
  105.                                     min_posts=2)
  106.  
  107.     # Block All Private Accounts And Accounts Without Profile Picture.
  108.     session.set_skip_users(skip_private=True,
  109.                            private_percentage=100,
  110.                            skip_no_profile_pic=True,
  111.                            no_profile_pic_percentage=100,
  112.                            skip_business=True,
  113.                            business_percentage=100,)
  114.  
  115.  
  116.     #Interaction Settings
  117.     session.set_user_interact(amount=3,
  118.                               percentage=32,
  119.                               randomize=True,
  120.                               media='Photo')
  121.  
  122.     # Action Settings. # Do Some Things!
  123.     session.set_simulation(enabled=True)
  124.     session.set_mandatory_language(enabled=False, character_set=['LATIN'])
  125.     session.set_do_like(enabled=True, percentage=40)
  126.     session.set_delimit_commenting(enabled=True, max=15, min=0)
  127.     session.set_delimit_liking(enabled=True, max=100, min=0)
  128.     session.set_do_comment(enabled=True, percentage=40)
  129.     session.set_do_follow(enabled=True, percentage=30, times=1)
  130.     session.set_dont_unfollow_active_users(enabled=False, posts=1)
  131.     session.set_comments(myComments, media = 'Photo')
  132.    
  133.  
  134.  
  135. # Activity Start # Randomize the things I tell you to do !
  136.     r = random.randint(0,6)
  137.     if r == 0 :
  138.         session.follow_by_tags(myHashTags, amount=tinyAmount, randomize=True, interact=True)
  139.         print(red('00000000000000000000000000000000000000000000\n Following by tags..: )\n00000000000000000000000000000000000000000000'))
  140.     elif r == 1:
  141.         print(red('00000000000000000000000000000000000000000000\n STAGE 2: :O\n00000000000000000000000000000000000000000000'))
  142.         session.follow_likers(shuffleM, photos_grab_amount = 2, follow_likers_per_photo = 3, randomize=True, sleep_delay=600, interact=True)
  143.     elif r == 2:
  144.         print(red('00000000000000000000000000000000000000000000\n STAGE 3: :D\n00000000000000000000000000000000000000000000'))
  145.         session.set_smart_hashtags(['magick', 'spelljar'], limit=3, sort='random', log_tags=True)
  146.         session.like_by_tags(amount=10, use_smart_hashtags=True, interact=True)
  147.     elif r == 3:
  148.         print(red('00000000000000000000000000000000000000000000\n STAGE 4: ):\n00000000000000000000000000000000000000000000'))
  149.         session.follow_user_followers(shuffleL, amount=tinyAmount)
  150.     elif r == 4:
  151.         print(red('00000000000000000000000000000000000000000000\n STAGE 5: :|\n00000000000000000000000000000000000000000000'))
  152.         session.like_by_feed(amount=tinyAmount, randomize=True, unfollow=False, interact=True)
  153.     elif r == 5:
  154.         print(red('00000000000000000000000000000000000000000000\n STAGE 6: :p\n00000000000000000000000000000000000000000000'))
  155.         session.set_user_interact(amount=tinyAmount,
  156.         percentage=tinyAmount,
  157.         randomize=True,
  158.         media='Photo')
  159.         session.follow_commenters(shuffleM, amount=tinyAmount, daysold=60, max_pic = tinyAmount, sleep_delay=600, interact=True)
  160.     elif r == 6:
  161.         print(red('00000000000000000000000000000000000000000000\n STAGE 7: (:\n00000000000000000000000000000000000000000000'))
  162.         session.unfollow_users(amount=10, InstapyFollowed=(True, "nonfollowers"), style="FIFO", sleep_delay=450)
  163.  
  164. # End Session.
  165.     session.end()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top