Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. from InstagramAPI import InstagramAPI
  2. import time
  3.  
  4. api = InstagramAPI("roi_maskalik", "0r5r4r")
  5. time.sleep(2)
  6. if (api.login()):
  7. print("Login succes!")
  8. user_id = api.username_id
  9. followers = api.getTotalFollowers(user_id)
  10. for f in followers:
  11. follow = api.getUserFollowers(f)
  12. time.sleep(2)
  13. foing = api.getUserFollowings(f)
  14. time.sleep(2)
  15. if follow < 20 and follow*7 < foing:
  16. print(f)
  17. api.block(f)
  18. else:
  19. print("Can't login!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement