Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. import random
  2. from instapy import InstaPy
  3. from instapy.util import smart_run
  4.  
  5. # login credentials
  6. insta_username = 'xx'
  7. insta_password = 'xx'
  8.  
  9. dont_likes = ['sex', 'nude', 'naked', 'beef', 'pork', 'seafood',
  10. 'egg', 'chicken', 'cheese', 'sausage', 'lobster',
  11. 'fisch', 'schwein', 'lamm', 'rind', 'kuh', 'meeresfrüchte',
  12. 'schaf', 'ziege', 'hummer', 'yoghurt', 'joghurt', 'dairy',
  13. 'meal', 'food', 'eat', 'pancake', 'cake', 'dessert',
  14. 'protein', 'essen', 'mahl', 'breakfast', 'lunch',
  15. 'dinner', 'turkey', 'truthahn', 'plate', 'bacon',
  16. 'sushi', 'burger', 'salmon', 'shrimp', 'steak',
  17. 'schnitzel', 'goat', 'oxtail', 'mayo', 'fur', 'leather',
  18. 'cream', 'hunt', 'gun', 'shoot', 'slaughter', 'pussy',
  19. 'breakfast', 'dinner', 'lunch']
  20.  
  21. friends = []
  22.  
  23. like_tag_list = ['love','workout', 'tbt', 'happy', 'me', 'selfie',
  24. 'friends', 'girl', 'fun', 'smile', 'igers', 'travel',
  25. 'family', 'beach', 'fitness', 'nofilter', 'summer', 'art',
  26. 'sweet', 'weekend', 'tattoo', 'coffee', 'puppy', 'my',
  27. 'miami', 'vacation', 'eyes', 'loveit', 'vintage', 'dubai',
  28. 'luxury', 'goodnight', 'dance', 'portrait', 'photoshoot', 'model']
  29.  
  30. # prevent posts that contain some hashtags from being skipped
  31. ignore_list = []
  32.  
  33. accounts = []
  34.  
  35. # get a session!
  36. session = InstaPy(username=insta_username,
  37. password=insta_password,
  38. headless_browser=True)
  39.  
  40. with smart_run(session):
  41. # settings
  42. session.set_relationship_bounds(enabled=True,
  43. max_followers=15000)
  44. session.set_blacklist(enabled=True, campaign='blacklist')
  45. session.set_dont_include(friends)
  46. session.set_dont_like(dont_likes)
  47. session.set_ignore_if_contains(ignore_list)
  48. session.set_user_interact(amount=4, randomize=True, percentage=60)
  49. session.set_do_follow(enabled=True, percentage=40)
  50. session.set_do_like(enabled=True, percentage=80)
  51. session.set_do_comment(True, percentage=50)
  52. session.set_comments([':fire:', ':thumbsup:', ':raising_hands:', ':smiling_face_with_sunglasses:'])
  53.  
  54. # activity
  55. session.like_by_tags(random.sample(like_tag_list, 3),
  56. amount=random.randint(50, 135), interact=True)
  57.  
  58. session.like_by_locations(['213094275/stockholm-sweden/', '225162642/norrkoping-sweden/',
  59. '213050058/milan-italy/', '213076173/athens-greece/',
  60. '215021641/ashdod/', '213042257/ashqelon/', '213041503/tel-aviv-israel/',
  61. '213742495/jerusalem-israel/', '359217521/beersheba-israel/', '222620532/kiryat-gat/'],
  62. amount=random.randint(10, 65),
  63. randomize=True)
  64.  
  65. session.interact_user_followers(['selenagomez', 'cristiano', 'de_rococo', 'barakshamir'], amount=random.randint(20, 85), randomize=True)
  66.  
  67. session.unfollow_users(amount=random.randint(375, 550),
  68. InstapyFollowed=(True, "all"), style="FIFO",
  69. unfollow_after=42 * 60 * 60, sleep_delay=501)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement