Advertisement
Guest User

Quickstart.py

a guest
Jan 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. from instapy import InstaPy
  2.  
  3. insta_username = ''
  4. insta_password = ''
  5.  
  6. # if you want to run this script on a server,
  7. # simply add nogui=True to the InstaPy() constructor
  8. session = InstaPy(username=insta_username, password=insta_password)
  9. session.login()
  10.  
  11. # set up all the settings
  12. session.set_upper_follower_count(limit=2500)
  13. session.set_do_comment(True, percentage=10)
  14. session.set_comments(['aMEIzing!', 'So much fun!!', 'Nicey!'])
  15. session.set_dont_include(['friend1', 'friend2', 'friend3'])
  16. session.set_dont_like(['pizza', 'girl'])
  17.  
  18. # do the actual liking
  19. session.like_by_tags(['natgeo', 'world'], amount=100)
  20.  
  21. # end the bot session
  22. session.end()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement