Guest User

Untitled

a guest
Jul 24th, 2020
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from instapy import InstaPy
  2. from instapy.util import smart_run
  3.  
  4. # Write your automation here
  5. # Stuck ? Look at the github page or the examples in the examples folder
  6.  
  7. insta_username = 'seuUser'
  8. insta_password = 'senhaInsta'
  9.  
  10. dont_like = ['food', 'girl', 'hot']
  11. ignore_words = ['pizza']
  12. friend_list = ['usuarioAmigo', 'usuarioAmigo2']
  13.  
  14. # If you want to enter your Instagram Credentials directly just enter
  15. # username=<your-username-here> and password=<your-password> into InstaPy
  16. # e.g like so InstaPy(username="instagram", password="test1234")
  17.  
  18. bot = InstaPy(username=insta_username, password=insta_password, headless_browser=True)
  19. with smart_run(bot):
  20.     bot.set_relationship_bounds(enabled=True,
  21.                                 potency_ratio=-1.11,
  22.                                 delimit_by_numbers=True,
  23.                                 max_followers=4590,
  24.                                 max_following=5555,
  25.                                 min_followers=45,
  26.                                 min_following=77)
  27. #    bot.set_do_comment(True, percentage=10)
  28. #    bot.set_comments(['Cool!', 'Awesome!', 'Nice!'])
  29. #    bot.set_dont_include(friend_list)
  30. #    bot.set_dont_like(dont_like)
  31.     bot.set_ignore_if_contains(ignore_words)
  32.     bot.follow_user_followers(['contaParaSeguirUsuarios1', 'contaParaSeguirUsuarios2', 'contaParaSeguirUsuarios3'], amount=100, randomize=False, sleep_delay=60)
  33.     bot.like_by_tags(['#frontendbrasil', '#programacao'], amount=100)
  34.     bot.unfollow_users(amount=94, instapy_followed_enabled=True, instapy_followed_param="nonfollowers", style="RANDOM", unfollow_after=48*60*60, sleep_delay=600)
  35.     bot.end()
  36.  
RAW Paste Data