question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add extended_entities to Tweeet

See original GitHub issue

tweet_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:closed
  • Created 7 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MyraBabacommented, Jan 26, 2017

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.

On 26 Oca 2017, at 20:50, Daniela Sfregola notifications@github.com wrote:

@MyraBaba https://github.com/MyraBaba please try to be more explicit when raising tickets.

Which version of twitter4s are you using? When you state that search rest API should be fixed accordingly what do you mean? Do you mean that extended_entities should be added in the tweet entity? do you mean that there is a parameter that we should support?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DanielaSfregola/twitter4s/issues/101#issuecomment-275459132, or mute the thread https://github.com/notifications/unsubscribe-auth/AQscn8Gh1gn1vfMaYA9LDBAhxrMLG8DYks5rWNzXgaJpZM4Lu7ZN.

0reactions
DanielaSfregolacommented, Jan 28, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended entities object | Docs | Twitter Developer Platform
Currently, up to four photos can be attached to a Tweet. The entities metadata will only contain the first photo (until 2014, only...
Read more >
Extended Tweets — tweepy 4.12.1 documentation
This supplements Twitter's Tweet updates documentation and repository. ... If there are extended entities, the extended_entities sub-field/key will contain ...
Read more >
Unable to get extended_entities from thread tweets containing ...
I'm using the Tweepy API for Python in using the Twitter API. I've been able to obtain the extended_entities data for tweets in...
Read more >
On Extended Tweets • Social Feed Manager
Extended tweets can be selected by adding --tweet_mode extended to the commandline or setting the tweet_mode argument in Twarc's constructor. ...
Read more >
Formatting tweets: a look at Extended tweets, Retweets and ...
To display a tweet properly, it needs to be well formatted. This means identifying and linking entities like usernames, hashtags and URLs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found