title: How to get ID by username - Twitter API Python
body: <p>I'm creating an application with the Python Twitter API Package (<a href="https://python-twitter.readthedocs.io" rel="nofollow noreferrer">python-twitter</a>) but need to convert from username <code>@username</code> to ID <code>bunch_of_letters</code>.</p>
  
  <p>I've searched far and wide in the docs but just couldn't find how to do this. Would I need to just do a search? If so, how do I filter it so only users appear? Or should I do this through a request, because there is no functionality for it?</p>