Skip to content

Instantly share code, notes, and snippets.

@aoshiman
Created December 14, 2016 13:38
Show Gist options
  • Save aoshiman/52985e0f9356ea28e75677d57dbad223 to your computer and use it in GitHub Desktop.
Save aoshiman/52985e0f9356ea28e75677d57dbad223 to your computer and use it in GitHub Desktop.
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