I need to get a users entire twitter timeline in python. I am using the following code with all the oauth keys:
import twitter
api = twitter.api(consumer_key='',
consumer_secret='', access_token_key='', access_token_secret='')
statuses = api.GetUserTimeline(username)
print [s.text for s in statuses]
however, it returns [] for every account i try
I have no idea what im doing wrong. this is the first problem i've hade with python twitter.
I think you have to change your second line as following:
There is no
api
class, instead there isApi
. Please have a look at documentation.