简体   繁体   中英

How to get user_id from tweet_id in Tweepy?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM