def get_account(username): if username.startswith('@'): username = username[1:] accounts = _twitter.get_all_accounts() for a in accounts: if a.get('username', None) == username: return a return None
def get_all_accounts(): return _twitter.get_all_accounts()