Skip to content Skip to sidebar Skip to footer

Get Tweet Url Or Tweet Id Using Tweepy

So as the question suggests I'm trying to figure out how to get either the tweet id # or the whole url. Using the code below I can get the tweet(s) i want and print them out. Howev

Solution 1:

If you have the Tweet ID, you can get to the final URL like this:

Append it to https://twitter.com/twitter/statuses/ (+ the id)

Follow the HTTP redirect.

It sounds like you're not able to get the ID itself - that will be in the tweet.id value for each Tweet - currently you're just saving tweet.text

Post a Comment for "Get Tweet Url Or Tweet Id Using Tweepy"