Jan-04-2018, 04:19 PM
Quote:I was wondering how could I change line 28 so that I can pick out specific items I want to get, specifically just pk, username, and full name?
I think what your looking for is this?
def get_Followers(user): next_max_id = True while next_max_id: if next_max_id == True: next_max_id = '' API.getUserFollowings(get_userID(user), maxid=next_max_id) followers = API.LastJson.get('users', []) if type(followers) is list: for follower in followers: following.append((follower['pk'], follower['username'], follower['full_name'] ) ) next_max_id = API.LastJson.get('next_max_id', '')