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:
  t = twitter.friends.ids(**kwargs)
 return (t['ids'], t['next_cursor'])

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 : t = twitter . friends . ids ( ** kwargs ) return ( t [ 'ids' ] , t [ 'next_cursor' ] )
get a portion of followers/following for a user .