Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from instapy import InstaPy
- from instapy.util import smart_run
- # Write your automation here
- # Stuck ? Look at the github page or the examples in the examples folder
- insta_username = 'seuUser'
- insta_password = 'senhaInsta'
- dont_like = ['food', 'girl', 'hot']
- ignore_words = ['pizza']
- friend_list = ['usuarioAmigo', 'usuarioAmigo2']
- # 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")
- bot = InstaPy(username=insta_username, password=insta_password, headless_browser=True)
- with smart_run(bot):
- bot.set_relationship_bounds(enabled=True,
- potency_ratio=-1.11,
- delimit_by_numbers=True,
- max_followers=4590,
- max_following=5555,
- min_followers=45,
- min_following=77)
- # bot.set_do_comment(True, percentage=10)
- # bot.set_comments(['Cool!', 'Awesome!', 'Nice!'])
- # bot.set_dont_include(friend_list)
- # bot.set_dont_like(dont_like)
- bot.set_ignore_if_contains(ignore_words)
- bot.follow_user_followers(['contaParaSeguirUsuarios1', 'contaParaSeguirUsuarios2', 'contaParaSeguirUsuarios3'], amount=100, randomize=False, sleep_delay=60)
- bot.like_by_tags(['#frontendbrasil', '#programacao'], amount=100)
- bot.unfollow_users(amount=94, instapy_followed_enabled=True, instapy_followed_param="nonfollowers", style="RANDOM", unfollow_after=48*60*60, sleep_delay=600)
- bot.end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement