Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
the structure of the Status object of Tweepy
/* json.dumps(StatusObject._json) */
{
"created_at": "Thu Jul 28 00:08:39 +0000 2016",
"in_reply_to_status_id": null,
"id_str": "758454081656467456",
"retweeted": false,
"entities": {
"hashtags": [
{
"text": "30secLL_bot",
"indices": [
25,
37
]
}
],
"urls": [],
"symbols": [],
"media": [
{
"url": "https://t.co/oQjf1qKsDC",
"id_str": "680158074653442048",
"source_status_id": 680158389477875700,
"source_user_id": 4017736032,
"source_user_id_str": "4017736032",
"media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/680158074653442048/pu/img/UkJ-B_AqbC_vEOcY.jpg",
"source_status_id_str": "680158389477875712",
"sizes": {
"medium": {
"w": 600,
"h": 338,
"resize": "fit"
},
"small": {
"w": 340,
"h": 191,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
}
},
"display_url": "pic.twitter.com/oQjf1qKsDC",
"type": "photo",
"id": 680158074653442000,
"indices": [
38,
61
],
"expanded_url": "http://twitter.com/30seclovelive/status/680158389477875712/video/1",
"media_url": "http://pbs.twimg.com/ext_tw_video_thumb/680158074653442048/pu/img/UkJ-B_AqbC_vEOcY.jpg"
}
],
"user_mentions": []
},
"possibly_sensitive": false,
"in_reply_to_user_id_str": null,
"coordinates": null,
"retweet_count": 153,
"contributors": null,
"favorite_count": 228,
"favorited": false,
"in_reply_to_status_id_str": null,
"source": "<a href=\"http://twittbot.net/\" rel=\"nofollow\">twittbot.net</a>",
"in_reply_to_user_id": null,
"user": {
"default_profile": false,
"id_str": "4017736032",
"profile_background_tile": false,
"following": false,
"description": "30+ sec video bot / 30+ 秒 ビデオ bot | Love Live! • Love Live! Sunshine!! • μ's & Aqours seiyuu/声優 | This account no longer accepts requests | ENG only!",
"name": "30+ sec of ラブライブ!",
"profile_sidebar_border_color": "000000",
"entities": {
"description": {
"urls": []
}
},
"utc_offset": null,
"statuses_count": 2821,
"notifications": false,
"verified": false,
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
"profile_image_url": "http://pbs.twimg.com/profile_images/751165343968555009/DGbWpedO_normal.jpg",
"default_profile_image": false,
"profile_image_url_https": "https://pbs.twimg.com/profile_images/751165343968555009/DGbWpedO_normal.jpg",
"geo_enabled": false,
"follow_request_sent": false,
"is_translation_enabled": false,
"profile_use_background_image": false,
"protected": false,
"favourites_count": 0,
"url": null,
"followers_count": 31794,
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
"profile_link_color": "E81C4F",
"profile_text_color": "000000",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/4017736032/1464317692",
"has_extended_profile": false,
"is_translator": false,
"profile_sidebar_fill_color": "000000",
"created_at": "Sun Oct 25 22:20:47 +0000 2015",
"contributors_enabled": false,
"friends_count": 6,
"id": 4017736032,
"profile_background_color": "000000",
"location": "音ノ木坂学院 / 浦の星女学院 ",
"time_zone": null,
"screen_name": "30seclovelive",
"listed_count": 228,
"lang": "en"
},
"place": null,
"geo": null,
"truncated": false,
"in_reply_to_screen_name": null,
"is_quote_status": false,
"id": 758454081656467500,
"text": "movie - hanayo vs. bread #30secLL_bot https://t.co/oQjf1qKsDC",
"extended_entities": {
"media": [
{
"url": "https://t.co/oQjf1qKsDC",
"id_str": "680158074653442048",
"source_status_id": 680158389477875700,
"source_user_id": 4017736032,
"source_user_id_str": "4017736032",
"media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/680158074653442048/pu/img/UkJ-B_AqbC_vEOcY.jpg",
"source_status_id_str": "680158389477875712",
"sizes": {
"medium": {
"w": 600,
"h": 338,
"resize": "fit"
},
"small": {
"w": 340,
"h": 191,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"large": {
"w": 1024,
"h": 576,
"resize": "fit"
}
},
"display_url": "pic.twitter.com/oQjf1qKsDC",
"type": "video",
"id": 680158074653442000,
"indices": [
38,
61
],
"additional_media_info": {
"monetizable": false,
"source_user": {
"default_profile": false,
"id_str": "4017736032",
"profile_background_tile": false,
"following": false,
"description": "30+ sec video bot / 30+ 秒 ビデオ bot | Love Live! • Love Live! Sunshine!! • μ's & Aqours seiyuu/声優 | This account no longer accepts requests | ENG only!",
"name": "30+ sec of ラブライブ!",
"profile_sidebar_border_color": "000000",
"entities": {
"description": {
"urls": []
}
},
"utc_offset": null,
"statuses_count": 2821,
"notifications": false,
"verified": false,
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
"profile_image_url": "http://pbs.twimg.com/profile_images/751165343968555009/DGbWpedO_normal.jpg",
"default_profile_image": false,
"profile_image_url_https": "https://pbs.twimg.com/profile_images/751165343968555009/DGbWpedO_normal.jpg",
"geo_enabled": false,
"follow_request_sent": false,
"is_translation_enabled": false,
"profile_use_background_image": false,
"protected": false,
"favourites_count": 0,
"url": null,
"followers_count": 31794,
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
"profile_link_color": "E81C4F",
"profile_text_color": "000000",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/4017736032/1464317692",
"has_extended_profile": false,
"is_translator": false,
"profile_sidebar_fill_color": "000000",
"created_at": "Sun Oct 25 22:20:47 +0000 2015",
"contributors_enabled": false,
"friends_count": 6,
"id": 4017736032,
"profile_background_color": "000000",
"location": "音ノ木坂学院 / 浦の星女学院 ",
"time_zone": null,
"screen_name": "30seclovelive",
"listed_count": 228,
"lang": "en"
}
},
"video_info": {
"duration_millis": 30000,
"variants": [
{
"url": "https://video.twimg.com/ext_tw_video/680158074653442048/pu/pl/yOBp87ckwBL35I8e.m3u8",
"content_type": "application/x-mpegURL"
},
{
"url": "https://video.twimg.com/ext_tw_video/680158074653442048/pu/pl/yOBp87ckwBL35I8e.mpd",
"content_type": "application/dash+xml"
},
{
"url": "https://video.twimg.com/ext_tw_video/680158074653442048/pu/vid/1280x720/cZN0XuT_6u12nwak.mp4",
"content_type": "video/mp4",
"bitrate": 2176000
},
{
"url": "https://video.twimg.com/ext_tw_video/680158074653442048/pu/vid/640x360/-6cs96ywIwtM7-JP.mp4",
"content_type": "video/mp4",
"bitrate": 832000
},
{
"url": "https://video.twimg.com/ext_tw_video/680158074653442048/pu/vid/320x180/Spqi13GJkXZpU_zv.mp4",
"content_type": "video/mp4",
"bitrate": 320000
}
],
"aspect_ratio": [
16,
9
]
},
"expanded_url": "http://twitter.com/30seclovelive/status/680158389477875712/video/1",
"media_url": "http://pbs.twimg.com/ext_tw_video_thumb/680158074653442048/pu/img/UkJ-B_AqbC_vEOcY.jpg"
}
]
},
"lang": "in"
}
@myselfhimself

This comment has been minimized.

Copy link

commented Nov 21, 2017

Thank you for posting!!

@umesh1989

This comment has been minimized.

Copy link

commented Dec 19, 2017

Thanks you for this post!

@zgahhblhc

This comment has been minimized.

Copy link

commented Feb 20, 2018

Thank you for this post!

@mkraffa

This comment has been minimized.

Copy link

commented Apr 12, 2018

Thank you! :))

@gooohjy

This comment has been minimized.

Copy link

commented May 15, 2018

Really helpful, thank you!

@Alexsandr0x

This comment has been minimized.

Copy link

commented Jun 26, 2018

Thank you for this post!

@haungson

This comment has been minimized.

Copy link

commented Jun 30, 2018

Thank you very much !!

@GloriaHristova

This comment has been minimized.

Copy link

commented Jul 23, 2018

Thank you! Very useful!

@CapnS

This comment has been minimized.

Copy link

commented Oct 4, 2018

Thank you, So helpful!

@vivianamarquez

This comment has been minimized.

Copy link

commented Oct 6, 2018

Lifesaver :)

@mebble

This comment has been minimized.

Copy link

commented Dec 24, 2018

Thank you

@therohitdas

This comment has been minimized.

Copy link

commented Jan 6, 2019

This is extremely helpful! Thanks

@bright1993ff66

This comment has been minimized.

Copy link

commented May 31, 2019

Thank you very much for your post!

But where could I find the description of each key in this JSON file? Moreover, I also could get access to the extended_entities attribute by the following code:

tweet.extended_entities

@Mistobaan

This comment has been minimized.

Copy link

commented Aug 2, 2019

How did you generate it?

@zijianan

This comment has been minimized.

Copy link

commented Sep 8, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.