Cannot get tweet url
See original GitHub issueI ran this code
for tweet in tweepy.Cursor(api.search, q='sample', count=100,tweet_mode='extended').items():
print(tweet.url)
print(tweet.text)
but cannot get url. Now Status objects doesn’t have url attribute and text attribute ? How can I get tweet url ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
7 Ways to Troubleshoot When You Can't Open Twitter Links
There are several ways to fix Twitter links when they won't open in the app or website. Here's what you need to know....
Read more >How to link to a Tweet, Moment, List, or Twitter Space by URL
Navigate to the Tweet you'd like the URL of. Click the icon located within the Tweet. From the pop-up menu, select Copy link...
Read more >Get tweet url having only tweet id - Stack Overflow
First, I assume you have to do a query and search after the tweet id obtaining the user name, and after that build...
Read more >How to Find Your Twitter URL to Share on Instagram ...
How to find my Twitter URL on the app? · In your Twitter app, tap your profile pic in the top-left and tap...
Read more >Why i am not able to get tweet that contains third-party image ...
I want tweets detail that contains third party image sites URL like i.e. 500px This API not returning many more images third-party sites...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
url
has never been an attribute of the Tweet object. Instead, you can simply reconstruct a link to the Tweet by using theid
/id_str
attribute and thescreen_name
of the User object/attribute. e.g.f"https://twitter.com/{tweet.user.screen_name}/status/{tweet.id}"
The text attribute still exists for Tweet objects, although you might want to usefull_text
instead since you’re using the extended Tweet mode.For what is word you don’t need the screen name, the id is enough because Twitter automatically redirects to the full url.