Issue using python-twitter -


i'm using python-twitter api , whatever pass below code user, still returns timeline , not required user's. there i'm doing wrong?

import twitter api = twitter.api(consumer_key=consumer_key,                       consumer_secret=consumer_secret,                       access_token_key=access_key,                       access_token_secret=access_secret) user = "@stackfeed" statuses = api.getusertimeline(user) print [s.text s in statuses] 

when not pass required fields twitter.api, gives me authentication error.

you should use screen_name keyword argument, e.g.:

statuses = api.getusertimeline(screen_name="@gvanrossum") 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -