I am trying to leverage the python-twitter wrapper to convert email addresses to twitter username. So far I am trying to the code below but getting an error that states "Sorry, that page does not exist code 34". I am using the latest version of python-twitter and valid keys/secret to access (other python-twitter scripts are working OK).
Here is what I have:
import twitter
api = twitter.Api(consumer_key='',
consumer_secret='',
access_token_key='',
access_token_secret='')
users = api.GetUserByEmail('testemailaddress123@gmail.com')
for name in users:
print name
This code is based off the python-twitter documentation at: http://static.unto.net/python-twitter/0.6/doc/twitter.html#User