question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retreive tweet full text when tweet_mode is extended

See original GitHub issue

When tweet_mode is extended twitter api returns full text in full_text field instead of text.

https://dev.twitter.com/overview/api/upcoming-changes-to-tweets

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

16reactions
LittleBigFrogcommented, Nov 21, 2017

@victorpenna , I believe tweet.fulltext will generate an error, full_text to be used:

results = api.search(q=query, lang=language, count=tweetCount, tweet_mode='extended')
for tweet in results:
        print(tweet.full_text)```
7reactions
hugoncostacommented, Jun 29, 2018

This doesn’t work when the tweet is a retweet. You’re forced to make a structure with try/except to look for the full text in the retweet if exists otherwise get the “normal” full text

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended Tweets — tweepy 4.12.1 documentation
When using extended mode, the text attribute of Status objects returned by tweepy.API methods is replaced by a full_text attribute, which contains the...
Read more >
Tweepy not returning full tweet: tweet_mode = 'extended' not ...
So without tweet_mode added to the call, you do get the tweets with partial text? And with it, all you get is an...
Read more >
Extended Tweets — Tweetinvi 5.0.4 documentation
Twitter introduced a TweetMode parameter that is either compat or extended . Wherever this parameter has been documented, you will be able to...
Read more >
Twitter API: Premium data dictionary | Docs
The "extended_tweet" object provides the "full_text" field that contains the complete, untruncated Tweet message when longer than 140 characters. The " ...
Read more >
Full tweet text for lists/statuses - Twitter Developers
Hello I'm trying to get full text of tweet from list but show only 140. ... It should work if you add tweet_mode=extended...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found