Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

get_timeline doesn't gather whole texts #575

Closed
respektive-reen opened this issue Apr 25, 2021 · 5 comments
Closed

get_timeline doesn't gather whole texts #575

respektive-reen opened this issue Apr 25, 2021 · 5 comments
Labels

Comments

@respektive-reen
Copy link

Problem

During the last days I used the get_timeline() function, to gather some tweets from german twitter accounts. At first glance, all data looked fine, but during the validation process I noticed an issue in the 'text'-field.

After 120 characters the text is automatically cutoff and adds a shortlink to the text field instead of showing all 280 characters in the text field.

Expected behavior

Is there an option to gather all 280 characters in the text field?

Reproduce the problem

## insert code here

mdb_Abercron <- get_timeline(user = "mvabercron", n=3200)


### rtweet version


rtweet_0.7.0.9000
@llrs
Copy link
Collaborator

llrs commented Apr 25, 2021

Thanks for reporting, this seems like a problem extracting the data from the response.
You seem to be using rtweet development version where this is an area were some major changes are happening (see #558 and #572). If this is important to you right now use the stable version on CRAN (rtweet version 0.7.0 correctly returns all the text). I hope to fix this on the development version soon but it might require some more time.

@llrs llrs added the bug label Apr 25, 2021
@respektive-reen
Copy link
Author

Dear Lluís, your suggestion worked perfectly. Thank you for your quick response and your help!

@llrs
Copy link
Collaborator

llrs commented Apr 28, 2021

Reopening, (as the issue isn't solved and) this also affects lists_statuses see #362 (comment)

@llrs
Copy link
Collaborator

llrs commented Apr 29, 2021

On the examples of Twitter API endpoint statuses/home_timeline shows a truncated text too. This is on purpose from the API.

However, there are some reports of an undocumented parameter: tweet_mode = "extended" which was used previously and suggested as part of a PR #362 (comment) and from other tools that use it tweepy/tweepy#1170. Using it the functions return the full text (field changes from text to full_text) and display_text_range and extended_entities. This should make it easier to provide a more homogeneous report of the data.

@llrs
Copy link
Collaborator

llrs commented Dec 7, 2021

This was handled on #572

@llrs llrs closed this as completed Dec 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants