def whois():
 t = Twitter(auth=authen())
 try:
  screen_name = g['stuff'].split()[0]
 except:
  printNicely(red("Sorry I can't understand."))
  return
 if screen_name.startswith('@'):
  try:
   user = t.users.show(screen_name=screen_name[1:], include_entities=False)
   show_profile(user)
  except:
   debug_option()
   printNicely(red('No user.'))
 else:
  printNicely(red("A name should begin with a '@'"))

def whois ( ) : t = Twitter ( auth = authen ( ) ) try : screen_name = g [ 'stuff' ] . split ( ) [ 0 ] except : printNicely ( red ( "Sorry I can't understand." ) ) return if screen_name . startswith ( '@' ) : try : user = t . users . show ( screen_name = screen_name [ 1 : ] , include_entities = False ) show_profile ( user ) except : debug_option ( ) printNicely ( red ( 'No user.' ) ) else : printNicely ( red ( "A name should begin with a '@'" ) )
show profile of a specific user .