@verbose
def lookup_by_userid_demo():
 oauth = credsfromfile()
 client = Query(**oauth)
 user_info = client.user_info_from_id(USERIDS)
 for info in user_info:
  name = info['screen_name']
  followers = info['followers_count']
  following = info['friends_count']
  print('{0}, followers: {1}, following: {2}'.format(name, followers, following))

@ verbose def lookup_by_userid_demo ( ) : oauth = credsfromfile ( ) client = Query ( ** oauth ) user_info = client . user_info_from_id ( USERIDS ) for info in user_info : name = info [ 'screen_name' ] followers = info [ 'followers_count' ] following = info [ 'friends_count' ] print ( '{0}, followers: {1}, following: {2}' . format ( name , followers , following ) )
use the rest api to convert a userid to a screen name .