Reputation: 125
I'm having trouble getting the user_id from a specific tweet_id. Is there a way to get the author of a tweet id using Tweepy?
Upvotes: 1
Views: 996
Reputation: 2891
For the author of that tweet, or retweeted/quoted status try.
status = api.get_status(id)
author = status.author
retweeted_status_author = status.retweeted_status.author
quoted_status_author = status.quoted_status.author
Upvotes: 1