Created
December 14, 2016 13:38
-
-
Save aoshiman/52985e0f9356ea28e75677d57dbad223 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_allfriends(root_name): #get all friends | |
friends, cnt = [], 1 | |
while not len(friends) % 100: | |
friends += api.GetFriends(root_name, page=cnt) | |
cnt += 1 | |
return friends |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment