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.

No (extended) entities

See original GitHub issue

When I use api.GetStatus(ID) I don’t get extended_entities or even normal entities. All I get is “media”, but that doesn’t include video information (for example).

E.g. for this tweet:

print(api.GetStatus(778307811012780032))

and I only get this back:

{
   "created_at":"Tue Sep 20 19:00:17 +0000 2016",
   "favorite_count":212,
   "hashtags":[
      {
         "text":"amiibo"
      },
      {
         "text":"Picross"
      }
   ],
   "id":778307811012780032,
   "id_str ":"778307811012780032",
   "lang":"en",
   "media":[
      {
         "display_url":"pic.twitter.com/ibou4buFxe",
         "expanded_url":"https://twitter.com/NintendoAmerica/status/778307811012780032/video/1",
         "id":778025997606105089,
         "media_url":"http://pbs.twimg.com/media/CswaoY4UAAA8-Zj.jpg",
         "media_url_https":"https://pbs.twimg.com/media/CswaoY4UAAA8-Zj.jpg",
         "type":"video",
         "url":"https://t.co/ibou4buFxe"
      }
   ],
   "ret weet_count":39,
   "source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
   "text":"Puzzled on how to use #amiibo in #Picross 3D Round 2? Just follow these six simple steps!\nhttps://t.co/MjciohRcuW https://t.co/ibou4buFxe",
   "urls":[
      {
         "expanded_url":"http://www.nintendo.com/games/detail/picross-3d-round-2-3ds",
         "url":"https://t.co/MjciohRcuW"
      }
   ],
   "user":{
      "created_at":" Wed Apr 18 22:43:15 +0000 2007",
      "description":"Welcome to the official Nintendo profile for gaming news! We\u2019re listening, too. For ESRB ratings go to https://t.co/OgSR65P8OY",
      "favourites_count":252,
      "followers_count":5042478,
      "fri ends_count":1348,
      "id":5162861,
      "lang":"en",
      "listed_count":10196,
      "name":" Nintendo of America",
      "profile_background_color":"ACDED6",
      "profile_background_ image_url":"http://pbs.twimg.com/profile_background_images/623621309210083328/e9ZICp8d.jpg",
      "profile_banner_url":"https://pbs.twimg.com/profile_banners/5162861/1465781592",
      "profile_image_url":"http://pbs.twimg.com/profile_images/745752686780387333/wsjpSx2K_normal.jpg",
      "profile_link_color":"038543",
      "profile_side bar_fill_color":"F6F6F6",
      "profile_text_color":"333333",
      "screen_name":"NintendoAmerica",
      "statuses_count":11812,
      "time_zone":"Pacific Time (US & Canada)",
      "url":"https://t.co/cMLmFbyXaL",
      "utc_offset":-25200,
      "verified":true
   },
   "user_mentions":[

   ]
}

Is this a problem on my end, did I have missed something or…?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:12

github_iconTop GitHub Comments

8reactions
bcbcommented, Nov 2, 2016

The api needs tweet_mode=extended to return media.

https://dev.twitter.com/overview/api/upcoming-changes-to-tweets

1reaction
jeremylowcommented, Nov 1, 2016

Lands with PR #398

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended entities object | Docs | Twitter Developer Platform
The extended_entities object contains a single media array of media objects (see the entities section for its data dictionary). No other entity types,...
Read more >
No extended_entities on some tweets - Standard APIs v1.1
No extended_entities on some tweets ... Hello,. I've been running into a problem with the API, and I can't quite get what I'm...
Read more >
Having an issue with using extended_entities in tweepy
I was trying to get data of tweets from a user with tweepy and python 3.7, but I fail to get data which...
Read more >
Extended Tweets — tweepy 4.12.1 documentation
The default mode (if no parameter is provided) is compatibility mode. ... If there are extended entities, the extended_entities sub-field/key will contain ...
Read more >
Extend Entities - OroCommerce, OroCRM and OroPlatform ...
Of course, one can extend an entity class and add additional fields and associations in the subclass. However, this approach does not work...
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