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