def follow_portion(twitter, screen_name, cursor=-1, followers=True):
    kwargs = dict(screen_name=screen_name, cursor=cursor)
    if followers:
        t = twitter.followers.ids(**kwargs)
    else: # following
        t = twitter.friends.ids(**kwargs)
    return t['ids'], t['next_cursor']
Get a portion of followers/following for a user.
dataset/ETHPy150Open sixohsix/twitter/twitter/follow.py/follow_portion