Add extended_entities to Tweeet
See original GitHub issuetweet_mode=extended gives more media (extra jpg, gifs and video) Most of the media coming from entended_entites. search rest API should be fixed accordingly.
"extended_entities": { "media": [ { "id": 824577120492015600, "id_str": "824577120492015616", "indices": [ 63, 86 ], "media_url": "http://pbs.twimg.com/media/C3F8hbTXUAAym4i.jpg", "media_url_https": "https://pbs.twimg.com/media/C3F8hbTXUAAym4i.jpg", "url": "https://t.co/GzxWYyPuMy", "display_url": "pic.twitter.com/GzxWYyPuMy", "expanded_url": "https://twitter.com/yeniakit/status/824577122358427648/photo/1", "type": "photo", "sizes": { "large": { "w": 625, "h": 313, "resize": "fit" }, "small": { "w": 625, "h": 313, "resize": "fit" }, "medium": { "w": 625, "h": 313, "resize": "fit" }, "thumb": { "w": 150, "h": 150, "resize": "crop" } } } ] },
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
when I used tweet_mode = extended it looks like response JSON couldnt parse correctly. I am trying to debug and fix like :
to add:
entities.Tweet.scala extended_entities: Option[ExtendedEntities] = None,
and:
case class ExtendedEntities(media: Seq[ExtendenEntitiesMediaDetails] = Seq.empty)
case class ExtendenEntitiesMediaDetails(display_url: String , expanded_url: String , id_str: String , media_url: String ,
type
: String, url: String) but coulndt succeded…
yes I mean extenden_entities should be added Tweet.entity.
if you direct me I try to fix.
Hi @MyraBaba , Please do not add the code to the ticket, but create a pull request. Also, please comment in the correct ticket: this ticket is not about tweet mode (see #102), but it about adding extended entities to a tweet and it is already been closed.