Hi! Thanks for the tutorial.
I noticed that tweets containing RTs are not printed in full. How do I get the full RT text?
I am able to un-trunctate a tweet using this:
if tweet['truncated']: tweet_text = tweet['extended_tweet']['full_text'] else: tweet_text = tweet['text']
but it won't work for tweets containing RTs.
Anyone know how I can get the full RTs?
I would need it to get an accurate sentiment analysis.
Many thanks for the help!
Hi!
One possible approach would be adding the tweet_mode parameter as follows:
tweet_mode
tweets = extractor.user_timeline(screen_name="realDonaldTrump", count=200, tweet_mode="extended")
Let me know if that does the trick. :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi! Thanks for the tutorial.
I noticed that tweets containing RTs are not printed in full. How do I get the full RT text?
I am able to un-trunctate a tweet using this:
if tweet['truncated']:
tweet_text = tweet['extended_tweet']['full_text']
else:
tweet_text = tweet['text']
but it won't work for tweets containing RTs.
Anyone know how I can get the full RTs?
I would need it to get an accurate sentiment analysis.
Many thanks for the help!
Hi!
One possible approach would be adding the
tweet_mode
parameter as follows:Let me know if that does the trick. :)