Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from instapy import InstaPy
- import os
- # Write your automation here
- # Stuck ? Look at the github page or the examples in the examples folder
- #searches the description and owner comments for the given words
- # and won't like the image if one of the words are in there
- dont_like = ['food', 'girl', 'hot', 'vegan', 'meal', 'porn']
- #will ignore the don't like if the description contains
- # one of the given words
- ignore_words = ['pizza']
- #will prevent commenting and unfollowing your good friends
- friend_list = ['ferchugs91', 'street_wings', 'fernandoboix', 'npfeff', 'highfidelity.es', 'florynatarecords', 'dacivillo', 'angelmaf']
- # If you want to enter your Instagram Credentials directly just enter
- # username=<your-username-here> and password=<your-password> into InstaPy
- # e.g like so InstaPy(username="instagram", password="test1234")
- InstaPy(nogui=True)\
- .login()\
- .set_do_comment(True, percentage=25) \
- .set_comments(['Muy buena!', 'Mola!', 'Genial!']) \
- .set_dont_include(friend_list) \
- .set_dont_like(dont_like) \
- .set_ignore_if_contains(ignore_words) \
- .like_by_tags(['rock', 'liveshow', 'newalbum', 'fender', 'yamaha', 'musica', 'spain', 'drums', 'pop', 'sinfiltros', 'picoftheday', 'love', 'tbt', 'style', 'arte', 'disco', 'nuevacancion', 'temazo'], amount=100) \
- .set_do_follow(enabled=True, percentage=10, times=2) \
- .set_upper_follower_count(limit = 1000) \
- .unfollow_users(amount=7) \
- .end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement