You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some changes happening to Tweets at some point, as outlined in this post.
I can see a couple of things that need doing:
Add the new error code 386 ("The Tweet exceeds the number of allowed attachment types") to TWITTER_HTTP_STATUS_CODE in twython/endpoints.py
Make Twython.html_for_tweet() handle tweets that have no text field but do have a full_text field. Maybe just a quick check as to which field is present, and use that? I'm not sure if the method should do anything more clever.
I've read that post a couple of times now, and I don't think there's anything more Twython needs to do to cope, but I may well be wrong. A second opinion would be good! (fwiw, requesting tweets from the API with the new tweet_mode='extended' works, returning the new format of JSON.)
The text was updated successfully, but these errors were encountered:
There are some changes happening to Tweets at some point, as outlined in this post.
I can see a couple of things that need doing:
TWITTER_HTTP_STATUS_CODE
in twython/endpoints.pyTwython.html_for_tweet()
handle tweets that have notext
field but do have afull_text
field. Maybe just a quick check as to which field is present, and use that? I'm not sure if the method should do anything more clever.I've read that post a couple of times now, and I don't think there's anything more Twython needs to do to cope, but I may well be wrong. A second opinion would be good! (fwiw, requesting tweets from the API with the new
tweet_mode='extended'
works, returning the new format of JSON.)The text was updated successfully, but these errors were encountered: