Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from InstagramAPI import InstagramAPI
- import time
- api = InstagramAPI("roi_maskalik", "0r5r4r")
- time.sleep(2)
- if (api.login()):
- print("Login succes!")
- user_id = api.username_id
- followers = api.getTotalFollowers(user_id)
- for f in followers:
- follow = api.getUserFollowers(f)
- time.sleep(2)
- foing = api.getUserFollowings(f)
- time.sleep(2)
- if follow < 20 and follow*7 < foing:
- print(f)
- api.block(f)
- else:
- print("Can't login!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement