Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # imports
- from instapy import InstaPy
- from instapy import smart_run
- import random
- # login credentials
- insta_username = ''
- insta_password = ''
- # get an InstaPy session!
- # set headless_browser=True to run InstaPy in the background
- session = InstaPy(username=insta_username,
- password=insta_password,
- use_firefox=True,
- headless_browser=True,
- disable_image_load=True,
- multi_logs=True)
- # Session Successful, Time to go!
- with smart_run(session):
- # Varibles Here.
- ignoreUsers = ['']
- # Amount Varibles.
- # Red Banner Text.
- red = lambda text: '\033[0;31m' + text + '\033[0m'
- myHashTags = [ 'witchesofinstagram', 'magick' 'crystalhealing']
- myTargets = ['the_malewitch', 'hbadessa', 'theviking_forestwitch', 'flowersforhan','coventrycandles', 'magickwick', 'when_the_sun_rises']
- # Shuffle myTargets.
- shuffleT = (random.sample(myTargets,1))
- shuffleS = (random.sample(myTargets,2))
- shuffleM = (random.sample(myTargets,3))
- shuffleL = (random.sample(myTargets,4))
- tinyAmount = (random.randint(2, 4))
- smallAmount = (random.randint(5, 10))
- mediumAmount = (random.randint(10, 15))
- largeAmount = (random.randint(15, 30))
- bannedWords = ['#ad', 'promo', '#store', '#everyday', 'tattoo', '#marketing', '#tattoos', '#cg', 'dick', 'squirt',
- 'gay', 'homo', '#fit', '#goth', '#lucifer', '#satan', '#666', '#children', '#child', '[nazi', 'jew', 'judaism', '[muslim', '[islam',
- 'bangladesh','[hijab', '[niqab','[farright', '[rightwing', '#conservative', 'death', 'instaporn', 'instagirls', 'instagirl', 'instaxxx',
- 'instafreeporn', 'instansfw', 'instawomen', 'instapics', 'instafucking', 'instablowjob', 'instastar', 'instapictures', 'instapornstar',
- 'instaporno', 'instaass', 'instaadult', 'instapussy', 'nsfw', 'nugoth', 'hijab', 'niqab', 'religion', 'shirtless', 'fitness', 'yamaka', 'rightwing']
- myComments = [':heart_eyes:',
- ':raised_hands:',
- ':pray:',
- ':clap:',
- ':sparkles: :pray:',
- ':fire:',
- ':ok_hand:',
- 'diggin this post :raised_hands:',
- 'cool post',
- ':heart_eyes:']
- # Global Settings.
- # Set Blacklist Campaign. # Don't spam the same people with requests.
- session.set_blacklist(enabled=True, campaign='magick')
- # Restrictions Applied. # I Am The Boucer!
- session.set_dont_include(bannedWords)
- session.set_dont_like(bannedWords)
- session.set_ignore_if_contains(bannedWords)
- session.set_ignore_users(ignoreUsers)
- # Hail The Queen Supervisor Quota!
- session.set_quota_supervisor(enabled=True,
- sleep_after=["likes", "comments", "follows", "unfollows", "server_calls"],
- sleepyhead=True,
- stochastic_flow=True,
- notify_me=True,
- peak_likes=(mediumAmount, 500),
- peak_comments=(smallAmount, 500),
- peak_follows=(smallAmount, 50),
- peak_unfollows=(100, 500),
- peak_server_calls=(5000, 20000))
- # Action Delays. # Sleep When I Say And For How Long!
- session.set_action_delays(enabled=True,
- like=70,
- comment=70,
- follow=60,
- unfollow=50,
- randomize=True,
- random_range=(450, 4940))
- # Set Relationship Bounds. # Target Users.
- session.set_relationship_bounds(enabled=True,
- potency_ratio=-1.1,
- delimit_by_numbers=True,
- max_followers=30000,
- max_following=30000,
- min_followers=1,
- min_following=5,
- max_posts=5000,
- min_posts=2)
- # Block All Private Accounts And Accounts Without Profile Picture.
- session.set_skip_users(skip_private=True,
- private_percentage=100,
- skip_no_profile_pic=True,
- no_profile_pic_percentage=100,
- skip_business=True,
- business_percentage=100,)
- #Interaction Settings
- session.set_user_interact(amount=3,
- percentage=32,
- randomize=True,
- media='Photo')
- # Action Settings. # Do Some Things!
- session.set_simulation(enabled=True)
- session.set_mandatory_language(enabled=False, character_set=['LATIN'])
- session.set_do_like(enabled=True, percentage=40)
- session.set_delimit_commenting(enabled=True, max=15, min=0)
- session.set_delimit_liking(enabled=True, max=100, min=0)
- session.set_do_comment(enabled=True, percentage=40)
- session.set_do_follow(enabled=True, percentage=30, times=1)
- session.set_dont_unfollow_active_users(enabled=False, posts=1)
- session.set_comments(myComments, media = 'Photo')
- # Activity Start # Randomize the things I tell you to do !
- r = random.randint(0,6)
- if r == 0 :
- session.follow_by_tags(myHashTags, amount=tinyAmount, randomize=True, interact=True)
- print(red('00000000000000000000000000000000000000000000\n Following by tags..: )\n00000000000000000000000000000000000000000000'))
- elif r == 1:
- print(red('00000000000000000000000000000000000000000000\n STAGE 2: :O\n00000000000000000000000000000000000000000000'))
- session.follow_likers(shuffleM, photos_grab_amount = 2, follow_likers_per_photo = 3, randomize=True, sleep_delay=600, interact=True)
- elif r == 2:
- print(red('00000000000000000000000000000000000000000000\n STAGE 3: :D\n00000000000000000000000000000000000000000000'))
- session.set_smart_hashtags(['magick', 'spelljar'], limit=3, sort='random', log_tags=True)
- session.like_by_tags(amount=10, use_smart_hashtags=True, interact=True)
- elif r == 3:
- print(red('00000000000000000000000000000000000000000000\n STAGE 4: ):\n00000000000000000000000000000000000000000000'))
- session.follow_user_followers(shuffleL, amount=tinyAmount)
- elif r == 4:
- print(red('00000000000000000000000000000000000000000000\n STAGE 5: :|\n00000000000000000000000000000000000000000000'))
- session.like_by_feed(amount=tinyAmount, randomize=True, unfollow=False, interact=True)
- elif r == 5:
- print(red('00000000000000000000000000000000000000000000\n STAGE 6: :p\n00000000000000000000000000000000000000000000'))
- session.set_user_interact(amount=tinyAmount,
- percentage=tinyAmount,
- randomize=True,
- media='Photo')
- session.follow_commenters(shuffleM, amount=tinyAmount, daysold=60, max_pic = tinyAmount, sleep_delay=600, interact=True)
- elif r == 6:
- print(red('00000000000000000000000000000000000000000000\n STAGE 7: (:\n00000000000000000000000000000000000000000000'))
- session.unfollow_users(amount=10, InstapyFollowed=(True, "nonfollowers"), style="FIFO", sleep_delay=450)
- # End Session.
- session.end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement