Posting status with tweepy and getting a short link to status

tweepy

#1

I’m using Tweepy to post a status to twitter in Python. Is there a way to get a shortlink or URL to the post everytime python posts something?


#2

Once you’ve used API.update_status, the return type is a Status object. You should be able to get the Tweet ID back from that object. Once you have that, the URL will be https://twitter.com/[screen_name]/status/[id]


#3

Awesome, thank you!