Advertisement
Guest User

Untitled

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