Created
April 21, 2017 10:53
-
-
Save mizvol/dce8c41456da99961863478fbd7d26d6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 getFullListOfFollowers(userId): | |
fullFollowersList = [] | |
response = getFollowers(userId, '') | |
if response.get('data') == None: | |
print "Access denied" | |
return fullFollowersList | |
while(1): | |
fullFollowersList.extend(response.get('data')) | |
nextCursor = response.get('pagination').get('next_cursor') | |
if nextCursor == None: | |
break | |
return fullFollowersList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment