Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- from instapy import InstaPy
- from instapy.util import smart_run
- # login credentials
- insta_username = 'xxx'
- insta_password = 'xxx'
- dont_likes = ['sex', 'nude', 'naked', 'beef', 'pork', 'seafood',
- 'egg', 'chicken', 'cheese', 'sausage', 'lobster',
- 'fisch', 'schwein', 'lamm', 'rind', 'kuh', 'meeresfrüchte',
- 'schaf', 'ziege', 'hummer', 'yoghurt', 'joghurt', 'dairy',
- 'meal', 'food', 'eat', 'pancake', 'cake', 'dessert',
- 'protein', 'essen', 'mahl', 'breakfast', 'lunch',
- 'dinner', 'turkey', 'truthahn', 'plate', 'bacon',
- 'sushi', 'burger', 'salmon', 'shrimp', 'steak',
- 'schnitzel', 'goat', 'oxtail', 'mayo', 'fur', 'leather',
- 'cream', 'hunt', 'gun', 'shoot', 'slaughter', 'pussy',
- 'breakfast', 'dinner', 'lunch']
- friends = []
- like_tag_list = ['love','workout', 'tbt', 'happy', 'me', 'selfie',
- 'friends', 'girl', 'fun', 'smile', 'igers', 'travel',
- 'family', 'beach', 'fitness', 'nofilter', 'summer', 'art',
- 'sweet', 'weekend', 'tattoo', 'coffee', 'puppy', 'my',
- 'miami', 'vacation', 'eyes', 'loveit', 'vintage', 'dubai',
- 'luxury', 'goodnight', 'dance', 'portrait', 'photoshoot', 'model']
- # prevent posts that contain some hashtags from being skipped
- ignore_list = []
- accounts = []
- # get a session!
- session = InstaPy(username=insta_username,
- password=insta_password,
- headless_browser=True)
- with smart_run(session):
- # settings
- session.set_relationship_bounds(enabled=True,
- max_followers=15000)
- session.set_blacklist(enabled=True, campaign='blacklist')
- session.set_dont_include(friends)
- session.set_dont_like(dont_likes)
- session.set_ignore_if_contains(ignore_list)
- session.set_user_interact(amount=4, randomize=True, percentage=60)
- session.set_do_follow(enabled=True, percentage=40)
- session.set_do_like(enabled=True, percentage=80)
- session.set_do_comment(True, percentage=50)
- session.set_comments([':fire:', ':thumbsup:', ':raising_hands:', ':smiling_face_with_sunglasses:'])
- # activity
- session.like_by_tags(random.sample(like_tag_list, 3),
- amount=random.randint(50, 135), interact=True)
- session.like_by_locations(['213094275/stockholm-sweden/', '225162642/norrkoping-sweden/',
- '213050058/milan-italy/', '213076173/athens-greece/'], amount=random.randint(30, 100),
- randomize=True)
- session.interact_user_followers(['selenagomez', 'cristiano', 'de_rococo', 'barakshamir'], amount=random.randint(20, 85),
- randomize=True)
- session.unfollow_users(amount=random.randint(375, 550),
- InstapyFollowed=(True, "all"), style="FIFO",
- unfollow_after=42 * 60 * 60, sleep_delay=501)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement