I want to display the timeline with tweepy in python.
for status in api.home_timeline (tweet_mode ='extended', count = 200): Text = status.full_text Print (text)
With the above code, "RT @ user name" is displayed first in RT, so if "RT @ user name" + tweet body exceeds 140 characters, the excess tweet body is omitted with "..." Will be done.
Is there a way to get the full text of an RT tweet?
Answer # 1
If the text starts with "RT @"
retweeted_status.full_textGet the full text with.
for status in api.home_timeline (tweet_mode ='extended', count = 200): rt = "RT:" if status.full_text.startswith ("RT @") else "" text = status.retweeted_status.full_text if status.full_text.startswith ("RT @") else status.full_text print (rt + text)
- python - i want to get the elements in the linked site
- vba - i want to get the last column with the data in the specified row
- i want to get the working directory in c #
- python - i want to scrape the contents of java in (web) html
- c # - i want to get the bool in scriptableobject
- [vbnet] i want to get the extension from the file name
- python - i want to speed up the for statement
- python - i want to get all tweets of a specific user with api
- python - i want to set the user name logged in with django to url and jump to my page
- i want to pass the python path in bash
- python 3x - i can't get the text of the span tag using selenium
- i want to get the position of a javafx cell
- python 3x - how to get the value of scrolledtext
- python 3x - i want to list the strings as they are
- python - i want to find the mode of a pixel with a pixel value of 1 or more
- python - i want the block to disappear when the ball hits the block
- vbscript - i want to get the jst time in hh: mm: ss format
- python - you may need to restart the kernel to use updated packages error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- i want to call a child component method from a parent in vuejs
- python 3x - typeerror: 'method' object is not subscriptable
- xcode - pod install [!] no `podfile 'found in the project directory