Closed ghost closed 3 years ago
during init set tweet_mode: extended
, see
https://python-twitter.readthedocs.io/en/latest/changes_to_tweet_counting.html?highlight=tweet_mode#tweet-mode
Can I ask how did you figure out this issue? It also happens to me and I want to get full text either. I think it happens to tweets contain url links (things that twitter doesnt regard as text so it must be <140, but not for this module, or api) Did you change tweet_mode to compatibility ? or something? Thank you in advance.
barely remember but:
twitter.Api(**api_kwargs) # with tweet_mode: extended
tweets = self.get_tweets(<userid>)
some tweets seem still to be limited
You can get the full text below.
api = twitter.Api(**api_kwargs, tweet_mode='extended')
tweets = get_tweets(api=api, screen_name=screen_name)
Reference Code https://github.com/bear/python-twitter/blob/1a148ead5029d06bec58c1cbc879764aa4b2bc74/twitter/api.py#L215
how to disable tweet shortening at the end?
see the link for full unshortened tweet.
Can at least the link be removed to get some more tweet chars in there? The
resp = self._RequestUrl(url, 'GET', data=parameters)
seems to at least include"truncated":true,
, can this flag be forcibly enabled, workaround?Code