Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.43 KB | None | 0 0
  1. from instapy import InstaPy
  2. import os
  3.  
  4. # Write your automation here
  5. # Stuck ? Look at the github page or the examples in the examples folder
  6.  
  7. #searches the description and owner comments for the given words
  8. # and won't like the image if one of the words are in there
  9. dont_like = ['food', 'girl', 'hot', 'vegan', 'meal', 'porn']
  10.  
  11. #will ignore the don't like if the description contains
  12. # one of the given words
  13. ignore_words = ['pizza']
  14.  
  15. #will prevent commenting and unfollowing your good friends
  16. friend_list = ['ferchugs91', 'street_wings', 'fernandoboix', 'npfeff', 'highfidelity.es', 'florynatarecords', 'dacivillo', 'angelmaf']
  17.  
  18. # If you want to enter your Instagram Credentials directly just enter
  19. # username=<your-username-here> and password=<your-password> into InstaPy
  20. # e.g like so InstaPy(username="instagram", password="test1234")
  21.  
  22. InstaPy(nogui=True)\
  23.   .login()\
  24.   .set_do_comment(True, percentage=25) \
  25.   .set_comments(['Muy buena!', 'Mola!', 'Genial!']) \
  26.   .set_dont_include(friend_list) \
  27.   .set_dont_like(dont_like) \
  28.   .set_ignore_if_contains(ignore_words) \
  29.   .like_by_tags(['rock', 'liveshow', 'newalbum', 'fender', 'yamaha', 'musica', 'spain', 'drums', 'pop', 'sinfiltros', 'picoftheday', 'love', 'tbt', 'style', 'arte', 'disco', 'nuevacancion', 'temazo'], amount=100) \
  30.   .set_do_follow(enabled=True, percentage=10, times=2) \
  31.   .set_upper_follower_count(limit = 1000) \
  32.   .unfollow_users(amount=7) \
  33.   .end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement