From fec9af5626c2b280e51ebd3d130a326f6078ef12 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 7 Aug 2020 16:43:26 +0200 Subject: [PATCH] Add mocks for different kinds of media/tweets --- .../collection/tests/twitter/builder/mocks.py | 4451 ++++++----------- .../collection/tests/twitter/builder/tests.py | 62 + 2 files changed, 1591 insertions(+), 2922 deletions(-) diff --git a/src/newsreader/news/collection/tests/twitter/builder/mocks.py b/src/newsreader/news/collection/tests/twitter/builder/mocks.py index 22a2d94..db7e410 100644 --- a/src/newsreader/news/collection/tests/twitter/builder/mocks.py +++ b/src/newsreader/news/collection/tests/twitter/builder/mocks.py @@ -1,30 +1,270 @@ # retrieved with: -# curl -X GET -H "Authorization: Bearer " "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi" | python3 -m json.tool --sort-keys +# curl -X GET -H "Authorization: Bearer " "https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&tweet_mode=extended" | python3 -m json.tool --sort-keys -example_mock = [ +simple_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Wed Apr 29 17:03:24 +0000 2020", + "created_at": "Fri Aug 07 00:17:05 +0000 2020", + "display_text_range": [11, 59], + "entities": { + "hashtags": [], + "symbols": [], + "urls": [ + { + "display_url": "youtu.be/rDy7tPf6CT8", + "expanded_url": "https://youtu.be/rDy7tPf6CT8", + "indices": [36, 59], + "url": "https://t.co/trAcIxBMlX", + } + ], + "user_mentions": [ + { + "id": 975844884606275587, + "id_str": "975844884606275587", + "indices": [0, 10], + "name": "ArieNeo", + "screen_name": "ArieNeoSC", + } + ], + }, + "favorite_count": 19, + "favorited": False, + "full_text": "@ArieNeoSC Here you go, goodnight!\n\nhttps://t.co/trAcIxBMlX", + "geo": None, + "id": 1291528756373286914, + "id_str": "1291528756373286914", + "in_reply_to_screen_name": "ArieNeoSC", + "in_reply_to_status_id": 1291507356313038850, + "in_reply_to_status_id_str": "1291507356313038850", + "in_reply_to_user_id": 975844884606275587, + "in_reply_to_user_id_str": "975844884606275587", + "is_quote_status": False, + "lang": "en", + "place": None, + "possibly_sensitive": False, + "retweet_count": 5, + "retweeted": False, + "source": 'Twitter Web App', + "truncated": False, + "user": { + "contributors_enabled": False, + "created_at": "Wed Sep 05 00:58:11 +0000 2012", + "default_profile": False, + "default_profile_image": False, + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", + "entities": { + "description": {"urls": []}, + "url": { + "urls": [ + { + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", + "indices": [0, 23], + "url": "https://t.co/iqO6apof3y", + } + ] + }, + }, + "favourites_count": 4588, + "follow_request_sent": None, + "followers_count": 106169, + "following": None, + "friends_count": 201, + "geo_enabled": False, + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", + "is_translation_enabled": False, + "is_translator": False, + "lang": None, + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", + "notifications": None, + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", + "profile_text_color": "333333", + "profile_use_background_image": True, + "protected": False, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, + "time_zone": None, + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", + "utc_offset": None, + "verified": True, + }, + }, + { + "contributors": None, + "coordinates": None, + "created_at": "Wed Jul 29 19:01:47 +0000 2020", + "display_text_range": [10, 98], "entities": { "hashtags": [], "symbols": [], "urls": [], "user_mentions": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "id": 435221600, + "id_str": "435221600", + "indices": [0, 9], + "name": "Christopher Blough", + "screen_name": "RelicCcb", } ], }, - "favorite_count": 0, + "favorite_count": 1, "favorited": False, + "full_text": "@RelicCcb Hi Christoper, we have checked the status of your investigation and it is still ongoing.", "geo": None, - "id": 1255543219087044608, - "id_str": "1255543219087044608", + "id": 1288550304095416320, + "id_str": "1288550304095416320", + "in_reply_to_screen_name": "RelicCcb", + "in_reply_to_status_id": 1288475147951898625, + "in_reply_to_status_id_str": "1288475147951898625", + "in_reply_to_user_id": 435221600, + "in_reply_to_user_id_str": "435221600", + "is_quote_status": False, + "lang": "en", + "place": None, + "retweet_count": 0, + "retweeted": False, + "source": 'Twitter Web App', + "truncated": False, + "user": { + "contributors_enabled": False, + "created_at": "Wed Sep 05 00:58:11 +0000 2012", + "default_profile": False, + "default_profile_image": False, + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", + "entities": { + "description": {"urls": []}, + "url": { + "urls": [ + { + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", + "indices": [0, 23], + "url": "https://t.co/iqO6apof3y", + } + ] + }, + }, + "favourites_count": 4588, + "follow_request_sent": None, + "followers_count": 106169, + "following": None, + "friends_count": 201, + "geo_enabled": False, + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", + "is_translation_enabled": False, + "is_translator": False, + "lang": None, + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", + "notifications": None, + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", + "profile_text_color": "333333", + "profile_use_background_image": True, + "protected": False, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, + "time_zone": None, + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", + "utc_offset": None, + "verified": True, + }, + }, +] + +image_mock = [ + { + "contributors": None, + "coordinates": None, + "created_at": "Fri Aug 07 00:01:56 +0000 2020", + "display_text_range": [0, 278], + "entities": { + "hashtags": [], + "media": [ + { + "display_url": "pic.twitter.com/aI5frhSKbI", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291524942970777601/photo/1", + "id": 1291524790956613633, + "id_str": "1291524790956613633", + "indices": [279, 302], + "media_url": "http://pbs.twimg.com/media/Eexq9F-UYAERVd6.jpg", + "media_url_https": "https://pbs.twimg.com/media/Eexq9F-UYAERVd6.jpg", + "sizes": { + "large": {"h": 1080, "resize": "fit", "w": 1920}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/aI5frhSKbI", + } + ], + "symbols": [], + "urls": [ + { + "display_url": "youtu.be/rDy7tPf6CT8", + "expanded_url": "https://youtu.be/rDy7tPf6CT8", + "indices": [255, 278], + "url": "https://t.co/trAcIxBMlX", + } + ], + "user_mentions": [], + }, + "extended_entities": { + "media": [ + { + "display_url": "pic.twitter.com/aI5frhSKbI", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291524942970777601/photo/1", + "id": 1291524790956613633, + "id_str": "1291524790956613633", + "indices": [279, 302], + "media_url": "http://pbs.twimg.com/media/Eexq9F-UYAERVd6.jpg", + "media_url_https": "https://pbs.twimg.com/media/Eexq9F-UYAERVd6.jpg", + "sizes": { + "large": {"h": 1080, "resize": "fit", "w": 1920}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/aI5frhSKbI", + } + ] + }, + "favorite_count": 185, + "favorited": False, + "full_text": "This week we strap into the cockpit and take a look at aviation experimentation in the Public Test Universe, before a Sprint Report affords looks at cargo decks, FPS weapons, day/night in the city, dynamic fire, and more. Also, penguiny hugs.\n\nWatch now: https://t.co/trAcIxBMlX https://t.co/aI5frhSKbI", + "geo": None, + "id": 1291524942970777601, + "id_str": "1291524942970777601", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -33,157 +273,64 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 329, + "possibly_sensitive": False, + "retweet_count": 39, "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Wed Apr 29 17:01:38 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1255542774432063488", - "indices": [121, 144], - "url": "https://t.co/X5ZVcb6m1j", - } - ], - "user_mentions": [], - }, - "favorite_count": 752, - "favorited": False, - "geo": None, - "id": 1255542774432063488, - "id_str": "1255542774432063488", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 329, - "retweeted": False, - "source": 'Twitter Web App', - "text": "During these unprecedented times, what’s happening on Twitter can help the world better understand & respond to the… https://t.co/X5ZVcb6m1j", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, "source": 'Twitter Web App', - "text": "RT @TwitterDev: During these unprecedented times, what’s happening on Twitter can help the world better understand & respond to the pandemi…", "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, @@ -191,26 +338,67 @@ example_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Mon Mar 23 22:14:35 +0000 2020", + "created_at": "Thu Aug 06 00:03:04 +0000 2020", + "display_text_range": [0, 261], "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ + "hashtags": [{"indices": [210, 222], "text": "StarCitizen"}], + "media": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "display_url": "pic.twitter.com/mHekGRycKa", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291162838791335936/photo/1", + "id": 1291160447526121473, + "id_str": "1291160447526121473", + "indices": [262, 285], + "media_url": "http://pbs.twimg.com/media/Eesflg7UMAEW97M.jpg", + "media_url_https": "https://pbs.twimg.com/media/Eesflg7UMAEW97M.jpg", + "sizes": { + "large": {"h": 1078, "resize": "fit", "w": 2048}, + "medium": {"h": 632, "resize": "fit", "w": 1200}, + "small": {"h": 358, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/mHekGRycKa", } ], + "symbols": [], + "urls": [ + { + "display_url": "robertsspaceindustries.com/comm-link/tran\u2026", + "expanded_url": "https://robertsspaceindustries.com/comm-link/transmission/17712-Star-Citizen-Monthly-Report-July-2020", + "indices": [238, 261], + "url": "https://t.co/oVUjK6UWgC", + } + ], + "user_mentions": [], }, - "favorite_count": 0, + "extended_entities": { + "media": [ + { + "display_url": "pic.twitter.com/mHekGRycKa", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291162838791335936/photo/1", + "id": 1291160447526121473, + "id_str": "1291160447526121473", + "indices": [262, 285], + "media_url": "http://pbs.twimg.com/media/Eesflg7UMAEW97M.jpg", + "media_url_https": "https://pbs.twimg.com/media/Eesflg7UMAEW97M.jpg", + "sizes": { + "large": {"h": 1078, "resize": "fit", "w": 2048}, + "medium": {"h": 632, "resize": "fit", "w": 1200}, + "small": {"h": 358, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/mHekGRycKa", + } + ] + }, + "favorite_count": 149, "favorited": False, + "full_text": "We hope you\u2019re all enjoying the new additions that Alpha 3.10 brings to the \u2018verse. July\u2019s monthly report touches on a few of the final touches to the latest patch and work you can expect to see in the future. #StarCitizen\n\nRead it here: https://t.co/oVUjK6UWgC https://t.co/mHekGRycKa", "geo": None, - "id": 1242213180060758016, - "id_str": "1242213180060758016", + "id": 1291162838791335936, + "id_str": "1291162838791335936", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -219,157 +407,64 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 46, + "possibly_sensitive": False, + "retweet_count": 28, "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Mon Mar 23 22:01:13 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1242209814706438144", - "indices": [116, 139], - "url": "https://t.co/Oo1t07UH4Z", - } - ], - "user_mentions": [], - }, - "favorite_count": 171, - "favorited": False, - "geo": None, - "id": 1242209814706438144, - "id_str": "1242209814706438144", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 46, - "retweeted": False, - "source": 'Twitter Web App', - "text": "As we work to keep our employees safe during COVID-19, you are likely to experience longer than usual review times… https://t.co/Oo1t07UH4Z", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, "source": 'Twitter Web App', - "text": "RT @TwitterDev: As we work to keep our employees safe during COVID-19, you are likely to experience longer than usual review times for deve…", "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, @@ -377,309 +472,67 @@ example_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Mon Mar 23 16:28:09 +0000 2020", + "created_at": "Wed Aug 05 19:31:23 +0000 2020", + "display_text_range": [0, 218], "entities": { "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ + "media": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "display_url": "pic.twitter.com/ESB5UBwhmO", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291094468473393152/photo/1", + "id": 1291090033080856576, + "id_str": "1291090033080856576", + "indices": [219, 242], + "media_url": "http://pbs.twimg.com/media/Eerfi2rU8AAej68.jpg", + "media_url_https": "https://pbs.twimg.com/media/Eerfi2rU8AAej68.jpg", + "sizes": { + "large": {"h": 635, "resize": "fit", "w": 1680}, + "medium": {"h": 454, "resize": "fit", "w": 1200}, + "small": {"h": 257, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/ESB5UBwhmO", } ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1242125997081673728, - "id_str": "1242125997081673728", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": True, - "lang": "en", - "place": None, - "quoted_status_id": 1204497856679202816, - "quoted_status_id_str": "1204497856679202816", - "retweet_count": 41, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Mon Mar 23 16:26:08 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1242125486844604425", - "indices": [117, 140], - "url": "https://t.co/ViHyvQ4Y8S", - } - ], - "user_mentions": [], - }, - "favorite_count": 120, - "favorited": False, - "geo": None, - "id": 1242125486844604425, - "id_str": "1242125486844604425", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": True, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "quoted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Tue Dec 10 20:27:22 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1204497856679202816", - "indices": [117, 140], - "url": "https://t.co/ZlJUjmHIBe", - } - ], - "user_mentions": [], - }, - "favorite_count": 255, - "favorited": False, - "geo": None, - "id": 1204497856679202816, - "id_str": "1204497856679202816", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 95, - "retweeted": False, - "source": 'Twitter Web App', - "text": "You may have seen the recent announcement about following Topics on Twitter. Today, we’re excited to provide API su… https://t.co/ZlJUjmHIBe", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "quoted_status_id": 1204497856679202816, - "quoted_status_id_str": "1204497856679202816", - "retweet_count": 41, - "retweeted": False, - "source": 'Twitter Web App', - "text": "A few months ago, we added Tweet annotations to the Labs’ streaming endpoints. These annotations help uncover detai… https://t.co/ViHyvQ4Y8S", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: A few months ago, we added Tweet annotations to the Labs’ streaming endpoints. These annotations help uncover details about…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Tue Mar 10 17:57:58 +0000 2020", - "entities": { - "hashtags": [], "symbols": [], - "urls": [], - "user_mentions": [ + "urls": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "display_url": "robertsspaceindustries.com/spectrum/commu\u2026", + "expanded_url": "https://robertsspaceindustries.com/spectrum/community/SC/forum/3/thread/where-in-the-verse-is-pico-screenshot-contest", + "indices": [195, 218], + "url": "https://t.co/jFU7YLniDR", } ], + "user_mentions": [], }, - "favorite_count": 0, + "extended_entities": { + "media": [ + { + "display_url": "pic.twitter.com/ESB5UBwhmO", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291094468473393152/photo/1", + "id": 1291090033080856576, + "id_str": "1291090033080856576", + "indices": [219, 242], + "media_url": "http://pbs.twimg.com/media/Eerfi2rU8AAej68.jpg", + "media_url_https": "https://pbs.twimg.com/media/Eerfi2rU8AAej68.jpg", + "sizes": { + "large": {"h": 635, "resize": "fit", "w": 1680}, + "medium": {"h": 454, "resize": "fit", "w": 1200}, + "small": {"h": 257, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/ESB5UBwhmO", + } + ] + }, + "favorite_count": 306, "favorited": False, + "full_text": "Alpha 3.10 is live and our fuzzy friend Pico wants in on the action. \ud83d\udc27 We want to see what you and Pico are getting up to in the 'verse with our \"Where in the 'Verse is Pico?\" contest!\n\nDetails: https://t.co/jFU7YLniDR https://t.co/ESB5UBwhmO", "geo": None, - "id": 1237437557337513984, - "id_str": "1237437557337513984", + "id": 1291094468473393152, + "id_str": "1291094468473393152", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -688,184 +541,166 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 27, + "possibly_sensitive": False, + "retweet_count": 65, "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Tue Mar 10 17:47:53 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1237435017883762689", - "indices": [117, 140], - "url": "https://t.co/NpF4h9DaSq", - } - ], - "user_mentions": [], - }, - "favorite_count": 97, - "favorited": False, - "geo": None, - "id": 1237435017883762689, - "id_str": "1237435017883762689", - "in_reply_to_screen_name": "TwitterDev", - "in_reply_to_status_id": 1237435016134656006, - "in_reply_to_status_id_str": "1237435016134656006", - "in_reply_to_user_id": 2244994945, - "in_reply_to_user_id_str": "2244994945", - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 27, - "retweeted": False, - "source": 'Twitter Web App', - "text": "We ❤️ the incredible research people do using Twitter data to study topics like spam, abuse, and other areas relate… https://t.co/NpF4h9DaSq", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, "source": 'Twitter Web App', - "text": "RT @TwitterDev: We ❤️ the incredible research people do using Twitter data to study topics like spam, abuse, and other areas related to the…", "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, }, +] + +video_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Wed Feb 26 17:33:41 +0000 2020", + "created_at": "Wed Aug 05 18:36:00 +0000 2020", + "display_text_range": [0, 196], "entities": { "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ + "media": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "display_url": "pic.twitter.com/mZ8CAuq3SH", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291080532361527296/video/1", + "id": 1291074294747770880, + "id_str": "1291074294747770880", + "indices": [197, 220], + "media_url": "http://pbs.twimg.com/media/EerWyexUEAQhRL1.jpg", + "media_url_https": "https://pbs.twimg.com/media/EerWyexUEAQhRL1.jpg", + "sizes": { + "large": {"h": 720, "resize": "fit", "w": 1280}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/mZ8CAuq3SH", } ], + "symbols": [], + "urls": [ + { + "display_url": "robertsspaceindustries.com/greycatroc", + "expanded_url": "http://robertsspaceindustries.com/greycatroc", + "indices": [173, 196], + "url": "https://t.co/2aH7qdOfSk", + } + ], + "user_mentions": [], }, - "favorite_count": 0, + "extended_entities": { + "media": [ + { + "additional_media_info": { + "description": "", + "embeddable": True, + "monetizable": False, + "title": "", + }, + "display_url": "pic.twitter.com/mZ8CAuq3SH", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291080532361527296/video/1", + "id": 1291074294747770880, + "id_str": "1291074294747770880", + "indices": [197, 220], + "media_url": "http://pbs.twimg.com/media/EerWyexUEAQhRL1.jpg", + "media_url_https": "https://pbs.twimg.com/media/EerWyexUEAQhRL1.jpg", + "sizes": { + "large": {"h": 720, "resize": "fit", "w": 1280}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "video", + "url": "https://t.co/mZ8CAuq3SH", + "video_info": { + "aspect_ratio": [16, 9], + "duration_millis": 82967, + "variants": [ + { + "content_type": "application/x-mpegURL", + "url": "https://video.twimg.com/amplify_video/1291074294747770880/pl/kMYgFEoRyoW99o-i.m3u8?tag=13", + }, + { + "bitrate": 2176000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/amplify_video/1291074294747770880/vid/1280x720/J05_p6q74ZUN4csg.mp4?tag=13", + }, + { + "bitrate": 832000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/amplify_video/1291074294747770880/vid/640x360/ya3fVKeRdBs3cOoF.mp4?tag=13", + }, + { + "bitrate": 288000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/amplify_video/1291074294747770880/vid/480x270/WQkAozOts-hRoU1I.mp4?tag=13", + }, + ], + }, + } + ] + }, + "favorite_count": 289, "favorited": False, + "full_text": "Small enough to access hard-to-reach ore deposits, but with enough power to get through the tough jobs, Greycat\u2019s ROC perfectly complements any mining operation. \n\nDetails: https://t.co/2aH7qdOfSk https://t.co/mZ8CAuq3SH", "geo": None, - "id": 1232720402700521474, - "id_str": "1232720402700521474", + "id": 1291080532361527296, + "id_str": "1291080532361527296", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -874,157 +709,64 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 148, + "possibly_sensitive": False, + "retweet_count": 64, "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Wed Feb 26 17:32:51 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1232720193182412800", - "indices": [117, 140], - "url": "https://t.co/aN8kan0Lsw", - } - ], - "user_mentions": [], - }, - "favorite_count": 386, - "favorited": False, - "geo": None, - "id": 1232720193182412800, - "id_str": "1232720193182412800", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 148, - "retweeted": False, - "source": 'Twitter Web App', - "text": "In November, we gave people the ability to hide replies to their Tweets. Starting today, we’re opening this feature… https://t.co/aN8kan0Lsw", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: In November, we gave people the ability to hide replies to their Tweets. Starting today, we’re opening this feature up to d…", + "source": 'Twitter Media Studio', "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, @@ -1032,26 +774,98 @@ example_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Mon Jan 06 20:23:49 +0000 2020", + "created_at": "Wed Aug 05 18:31:27 +0000 2020", + "display_text_range": [0, 213], "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ + "hashtags": [{"indices": [157, 169], "text": "StarCitizen"}], + "media": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "display_url": "pic.twitter.com/lri5QijMoA", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291079386821582849/video/1", + "id": 1291070740347813889, + "id_str": "1291070740347813889", + "indices": [214, 237], + "media_url": "http://pbs.twimg.com/media/EerUMgyUwAAgj9w.jpg", + "media_url_https": "https://pbs.twimg.com/media/EerUMgyUwAAgj9w.jpg", + "sizes": { + "large": {"h": 720, "resize": "fit", "w": 1280}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/lri5QijMoA", } ], + "symbols": [], + "urls": [ + { + "display_url": "robertsspaceindustries.com/comm-link/tran\u2026", + "expanded_url": "https://robertsspaceindustries.com/comm-link/transmission/17648-Alpha-310-Flight-Fight", + "indices": [190, 213], + "url": "https://t.co/6jT1yuZMiR", + } + ], + "user_mentions": [], }, - "favorite_count": 0, + "extended_entities": { + "media": [ + { + "additional_media_info": { + "description": "", + "embeddable": True, + "monetizable": False, + "title": "", + }, + "display_url": "pic.twitter.com/lri5QijMoA", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1291079386821582849/video/1", + "id": 1291070740347813889, + "id_str": "1291070740347813889", + "indices": [214, 237], + "media_url": "http://pbs.twimg.com/media/EerUMgyUwAAgj9w.jpg", + "media_url_https": "https://pbs.twimg.com/media/EerUMgyUwAAgj9w.jpg", + "sizes": { + "large": {"h": 720, "resize": "fit", "w": 1280}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "video", + "url": "https://t.co/lri5QijMoA", + "video_info": { + "aspect_ratio": [16, 9], + "duration_millis": 83633, + "variants": [ + { + "bitrate": 288000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/amplify_video/1291070740347813889/vid/480x270/oGdSeLr5QQ-XcTns.mp4?tag=13", + }, + { + "bitrate": 2176000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/amplify_video/1291070740347813889/vid/1280x720/bql0evKsgYZhGPNP.mp4?tag=13", + }, + { + "bitrate": 832000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/amplify_video/1291070740347813889/vid/640x360/lSL6mqB53HnwrUo4.mp4?tag=13", + }, + { + "content_type": "application/x-mpegURL", + "url": "https://video.twimg.com/amplify_video/1291070740347813889/pl/_jJ-AYWSMr8ZS1WP.m3u8?tag=13", + }, + ], + }, + } + ] + }, + "favorite_count": 429, "favorited": False, + "full_text": "Harness the power of improved high-speed dynamic combat. Feel the thrill of atmospheric flight like never before. Alpha 3.10 will change the way you play. \ud83d\ude80 #StarCitizen\n\nGet in the 'verse: https://t.co/6jT1yuZMiR https://t.co/lri5QijMoA", "geo": None, - "id": 1214281438092238855, - "id_str": "1214281438092238855", + "id": 1291079386821582849, + "id_str": "1291079386821582849", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -1060,1300 +874,96 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 59, + "possibly_sensitive": False, + "retweet_count": 117, "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Mon Jan 06 20:22:05 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1214281000932593667", - "indices": [117, 140], - "url": "https://t.co/XaqD1JJ5kF", - } - ], - "user_mentions": [], - }, - "favorite_count": 166, - "favorited": False, - "geo": None, - "id": 1214281000932593667, - "id_str": "1214281000932593667", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 59, - "retweeted": False, - "source": 'Twitter Web App', - "text": "Hello… is it me you’re searching for? 🔎\n\nSearch the conversation as it unfolds with this new addition to Labs. We'r… https://t.co/XaqD1JJ5kF", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: Hello… is it me you’re searching for? 🔎\n\nSearch the conversation as it unfolds with this new addition to Labs. We're making…", + "source": 'Twitter Media Studio', "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, }, +] + +retweet_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Fri Jan 03 17:21:34 +0000 2020", + "created_at": "Wed Aug 05 21:01:02 +0000 2020", + "display_text_range": [0, 140], "entities": { - "hashtags": [], + "hashtags": [{"indices": [27, 39], "text": "StarCitizen"}], "symbols": [], "urls": [], "user_mentions": [ { - "id": 2244994945, - "id_str": "2244994945", + "id": 859293278100914176, + "id_str": "859293278100914176", "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", + "name": "Aleksandr Belov", + "screen_name": "Narayan_N7", } ], }, "favorite_count": 0, "favorited": False, + "full_text": "RT @Narayan_N7: New video! #StarCitizen 3.9 vs. 3.10 comparison!\nSo, the patch 3.10 came out, which brought us quite a lot of changes!\ud83d\ude42\nPle\u2026", "geo": None, - "id": 1213148410145992704, - "id_str": "1213148410145992704", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 218, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Fri Jan 03 17:17:23 +0000 2020", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1213147357551816704", - "indices": [117, 140], - "url": "https://t.co/WhV7rP54GM", - } - ], - "user_mentions": [], - }, - "favorite_count": 450, - "favorited": False, - "geo": None, - "id": 1213147357551816704, - "id_str": "1213147357551816704", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 218, - "retweeted": False, - "source": 'Twitter Web App', - "text": "Today, we’re sharing a few small improvements to make it easier for academic researchers to get started with the Tw… https://t.co/WhV7rP54GM", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: Today, we’re sharing a few small improvements to make it easier for academic researchers to get started with the Twitter AP…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Tue Dec 10 20:34:57 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1204499768459661312, - "id_str": "1204499768459661312", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 95, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Tue Dec 10 20:27:22 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1204497856679202816", - "indices": [117, 140], - "url": "https://t.co/ZlJUjmHIBe", - } - ], - "user_mentions": [], - }, - "favorite_count": 255, - "favorited": False, - "geo": None, - "id": 1204497856679202816, - "id_str": "1204497856679202816", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 95, - "retweeted": False, - "source": 'Twitter Web App', - "text": "You may have seen the recent announcement about following Topics on Twitter. Today, we’re excited to provide API su… https://t.co/ZlJUjmHIBe", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: You may have seen the recent announcement about following Topics on Twitter. Today, we’re excited to provide API support fo…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Tue Oct 29 19:39:40 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1189265562821640193, - "id_str": "1189265562821640193", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 46, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Tue Oct 29 19:37:15 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1189264953368338432", - "indices": [110, 133], - "url": "https://t.co/Y5QMh8rNoh", - } - ], - "user_mentions": [], - }, - "favorite_count": 145, - "favorited": False, - "geo": None, - "id": 1189264953368338432, - "id_str": "1189264953368338432", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 46, - "retweeted": False, - "source": 'Twitter Web App', - "text": "Study a sample of timely, relevant Tweets as they happen, with the newest release in Twitter Developer Labs.… https://t.co/Y5QMh8rNoh", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: Study a sample of timely, relevant Tweets as they happen, with the newest release in Twitter Developer Labs. https://t.co/m…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Wed Sep 18 16:41:39 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1174362863118372867, - "id_str": "1174362863118372867", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 106, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Wed Sep 18 16:36:10 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1174361480734466048", - "indices": [117, 140], - "url": "https://t.co/RElmBW5XxM", - } - ], - "user_mentions": [], - }, - "favorite_count": 234, - "favorited": False, - "geo": None, - "id": 1174361480734466048, - "id_str": "1174361480734466048", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 106, - "retweeted": False, - "source": 'Twitter Web App', - "text": "Today in Twitter Developer Labs we’re releasing a new way to filter Tweets in real-time. This is one of the most po… https://t.co/RElmBW5XxM", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: Today in Twitter Developer Labs we’re releasing a new way to filter Tweets in real-time. This is one of the most popular fe…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Tue Aug 27 17:30:39 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1166402661282746368, - "id_str": "1166402661282746368", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 59, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Tue Aug 27 17:25:06 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1166401263170281472", - "indices": [117, 140], - "url": "https://t.co/a8PaA1wg5A", - } - ], - "user_mentions": [], - }, - "favorite_count": 174, - "favorited": False, - "geo": None, - "id": 1166401263170281472, - "id_str": "1166401263170281472", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 59, - "retweeted": False, - "source": 'Twitter Web App', - "text": "Our latest Twitter Developer Labs release helps you quickly assess the impact of your Tweets. Today, we’re releasin… https://t.co/a8PaA1wg5A", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: Our latest Twitter Developer Labs release helps you quickly assess the impact of your Tweets. Today, we’re releasing \n\n✨a n…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Fri Aug 16 17:25:53 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1162415194749882368, - "id_str": "1162415194749882368", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 31, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Fri Aug 16 17:07:22 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1162410535121387525", - "indices": [117, 140], - "url": "https://t.co/VemT1Licd9", - } - ], - "user_mentions": [], - }, - "favorite_count": 102, - "favorited": False, - "geo": None, - "id": 1162410535121387525, - "id_str": "1162410535121387525", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 31, - "retweeted": False, - "source": 'Twitter Web App', - "text": "As of today, we’re simplifying permissions for third-party apps. Most developers won't be impacted, but if your app… https://t.co/VemT1Licd9", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] - }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter for iPhone', - "text": "RT @TwitterDev: As of today, we’re simplifying permissions for third-party apps. Most developers won't be impacted, but if your app uses th…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Thu Aug 15 16:24:23 +0000 2019", - "entities": { - "hashtags": [{"indices": [16, 26], "text": "iterating"}], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1162037328442875904, - "id_str": "1162037328442875904", + "id": 1291117030486106112, + "id_str": "1291117030486106112", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -2367,393 +977,42 @@ example_mock = [ "retweeted_status": { "contributors": None, "coordinates": None, - "created_at": "Thu Aug 15 16:20:05 +0000 2019", + "created_at": "Wed Aug 05 18:15:34 +0000 2020", + "display_text_range": [0, 250], "entities": { - "hashtags": [{"indices": [0, 10], "text": "iterating"}], + "hashtags": [{"indices": [11, 23], "text": "StarCitizen"}], "symbols": [], "urls": [ { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1162036247314833408", - "indices": [117, 140], - "url": "https://t.co/rRlVHaBTs2", + "display_url": "youtu.be/aXXGnCbEas0", + "expanded_url": "https://youtu.be/aXXGnCbEas0", + "indices": [227, 250], + "url": "https://t.co/j4QahHzbw4", } ], - "user_mentions": [], - }, - "favorite_count": 102, - "favorited": False, - "geo": None, - "id": 1162036247314833408, - "id_str": "1162036247314833408", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 26, - "retweeted": False, - "source": 'Twitter Web App', - "text": "#iterating: We recently released a long-requested feature in Twitter Developer Labs: \n\n📌Developer’s can now request… https://t.co/rRlVHaBTs2", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] + "user_mentions": [ + { + "id": 803542770, + "id_str": "803542770", + "indices": [193, 209], + "name": "Star Citizen", + "screen_name": "RobertsSpaceInd", }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: #iterating: We recently released a long-requested feature in Twitter Developer Labs: \n\n📌Developer’s can now request a user’…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Wed Jul 31 19:23:15 +0000 2019", - "entities": { - "hashtags": [{"indices": [16, 26], "text": "iterating"}], - "symbols": [], - "urls": [], - "user_mentions": [ - { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } - ], - }, - "favorite_count": 0, - "favorited": False, - "geo": None, - "id": 1156646525121916928, - "id_str": "1156646525121916928", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 41, - "retweeted": False, - "retweeted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Wed Jul 31 19:20:25 +0000 2019", - "entities": { - "hashtags": [{"indices": [0, 10], "text": "iterating"}], - "symbols": [], - "urls": [ { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1156645810156650496", - "indices": [117, 140], - "url": "https://t.co/VVp7rv6FIM", - } - ], - "user_mentions": [], - }, - "favorite_count": 111, - "favorited": False, - "geo": None, - "id": 1156645810156650496, - "id_str": "1156645810156650496", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "retweet_count": 41, - "retweeted": False, - "source": 'Twitter Web App', - "text": "#iterating: Today we are releasing an update to Twitter Developer Labs, with a few new features we think you’ll fin… https://t.co/VVp7rv6FIM", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", - "default_profile": False, - "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", - "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", - } - ] + "id": 803697073, + "id_str": "803697073", + "indices": [211, 225], + "name": "Cloud Imperium Games", + "screen_name": "CloudImperium", }, - }, - "favourites_count": 2165, - "follow_request_sent": None, - "followers_count": 509354, - "following": None, - "friends_count": 2000, - "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", - "notifications": None, - "profile_background_color": "FFFFFF", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, - "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", - "utc_offset": None, - "verified": True, - }, - }, - "source": 'Twitter Web App', - "text": "RT @TwitterDev: #iterating: Today we are releasing an update to Twitter Developer Labs, with a few new features we think you’ll find useful…", - "truncated": False, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Wed Jul 24 15:56:09 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1154057692723519494", - "indices": [117, 140], - "url": "https://t.co/8YgCwYoE3q", - } - ], - "user_mentions": [], - }, - "favorite_count": 128, - "favorited": False, - "geo": None, - "id": 1154057692723519494, - "id_str": "1154057692723519494", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": True, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "quoted_status": { - "contributors": None, - "coordinates": None, - "created_at": "Tue Jun 11 22:13:27 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1138569964032385025", - "indices": [117, 140], - "url": "https://t.co/qMtoumuG1e", - } ], - "user_mentions": [], }, - "favorite_count": 121, + "favorite_count": 97, "favorited": False, + "full_text": "New video! #StarCitizen 3.9 vs. 3.10 comparison!\nSo, the patch 3.10 came out, which brought us quite a lot of changes!\ud83d\ude42\nPlease, share it with your friends!\ud83d\ude4f\n\nEnjoy watching and stay safe! \u2764\ufe0f\u263a\ufe0f\n@RobertsSpaceInd\n\n@CloudImperium\n\nhttps://t.co/j4QahHzbw4", "geo": None, - "id": 1138569964032385025, - "id_str": "1138569964032385025", + "id": 1291075388798533633, + "id_str": "1291075388798533633", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -2763,128 +1022,131 @@ example_mock = [ "lang": "en", "place": None, "possibly_sensitive": False, - "retweet_count": 91, + "retweet_count": 26, "retweeted": False, - "source": 'Twitter Web Client', - "text": "Starting July 15, 2019, all connections to the Twitter API (and all other Twitter domains) will require TLS 1.2. Re… https://t.co/qMtoumuG1e", - "truncated": True, + "source": 'Twitter Web App', + "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, + "created_at": "Tue May 02 06:27:37 +0000 2017", + "default_profile": True, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "Enlist to Star Citizen: https://t.co/JOei50wjGK Content creator. #IWantToWorkAtCIG \n#StarCitizen #video #youtube #flickr #4K #panorama", "entities": { - "description": {"urls": []}, + "description": { + "urls": [ + { + "display_url": "goo.gl/8CbEZm", + "expanded_url": "http://goo.gl/8CbEZm", + "indices": [24, 47], + "url": "https://t.co/JOei50wjGK", + } + ] + }, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "youtube.com/user/sashaMOHC\u2026", + "expanded_url": "https://www.youtube.com/user/sashaMOHCTPwhite", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/ise14uN9Ja", } ] }, }, - "favourites_count": 3, + "favourites_count": 1882, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 489, "following": None, - "friends_count": 32, - "geo_enabled": False, + "friends_count": 80, + "geo_enabled": True, "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "id": 859293278100914176, + "id_str": "859293278100914176", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 16, + "location": "\u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433, \u0420\u043e\u0441\u0441\u0438\u044f", + "name": "Aleksandr Belov", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", + "profile_background_color": "F5F8FA", + "profile_background_image_url": None, + "profile_background_image_url_https": None, + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/859293278100914176/1576841460", + "profile_image_url": "http://pbs.twimg.com/profile_images/1203066581573607425/5TEkxVJ3_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/1203066581573607425/5TEkxVJ3_normal.jpg", + "profile_link_color": "1DA1F2", "profile_sidebar_border_color": "C0DEED", "profile_sidebar_fill_color": "DDEEF6", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "Narayan_N7", + "statuses_count": 1283, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/ise14uN9Ja", "utc_offset": None, - "verified": True, + "verified": False, }, }, - "quoted_status_id": 1138569964032385025, - "quoted_status_id_str": "1138569964032385025", - "retweet_count": 108, - "retweeted": False, "source": 'Twitter Web App', - "text": "TLS 1.2 reminder: this change will be enacted as of tomorrow, July 25, 2019. Please reference our developer forum p… https://t.co/8YgCwYoE3q", - "truncated": True, + "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, @@ -2892,26 +1154,35 @@ example_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Wed Jul 17 15:54:45 +0000 2019", + "created_at": "Thu Jul 30 13:15:25 +0000 2020", + "display_text_range": [0, 140], "entities": { - "hashtags": [], + "hashtags": [{"indices": [24, 40], "text": "CountdownToMars"}], "symbols": [], "urls": [], "user_mentions": [ { - "id": 2244994945, - "id_str": "2244994945", - "indices": [3, 14], - "name": "Twitter Dev", - "screen_name": "TwitterDev", - } + "id": 11348282, + "id_str": "11348282", + "indices": [3, 8], + "name": "NASA", + "screen_name": "NASA", + }, + { + "id": 1232783237623119872, + "id_str": "1232783237623119872", + "indices": [123, 137], + "name": "NASA's Perseverance Mars Rover", + "screen_name": "NASAPersevere", + }, ], }, "favorite_count": 0, "favorited": False, + "full_text": "RT @NASA: LIVE NOW: The #CountdownToMars begins. \n\nWe are launching a historic mission to the Red Planet. Tune in to watch @NASAPersevere l\u2026", "geo": None, - "id": 1151520624315174912, - "id_str": "1151520624315174912", + "id": 1288825524878336000, + "id_str": "1288825524878336000", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -2920,30 +1191,40 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 421, + "retweet_count": 8867, "retweeted": False, "retweeted_status": { "contributors": None, "coordinates": None, - "created_at": "Wed Jul 17 15:53:43 +0000 2019", + "created_at": "Thu Jul 30 11:01:06 +0000 2020", + "display_text_range": [0, 236], "entities": { - "hashtags": [], + "hashtags": [{"indices": [14, 30], "text": "CountdownToMars"}], "symbols": [], "urls": [ { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1151520361529430016", - "indices": [117, 140], - "url": "https://t.co/dG3PmGWAJ4", + "display_url": "twitter.com/i/broadcasts/1\u2026", + "expanded_url": "https://twitter.com/i/broadcasts/1RDGlrkoEzNxL", + "indices": [213, 236], + "url": "https://t.co/JxyRCol01i", + } + ], + "user_mentions": [ + { + "id": 1232783237623119872, + "id_str": "1232783237623119872", + "indices": [113, 127], + "name": "NASA's Perseverance Mars Rover", + "screen_name": "NASAPersevere", } ], - "user_mentions": [], }, - "favorite_count": 675, + "favorite_count": 18327, "favorited": False, + "full_text": "LIVE NOW: The #CountdownToMars begins. \n\nWe are launching a historic mission to the Red Planet. Tune in to watch @NASAPersevere liftoff and begin her mission to search for signs of ancient life on another world: https://t.co/JxyRCol01i", "geo": None, - "id": 1151520361529430016, - "id_str": "1151520361529430016", + "id": 1288791726165983233, + "id_str": "1288791726165983233", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -2952,217 +1233,388 @@ example_mock = [ "is_quote_status": False, "lang": "en", "place": None, - "retweet_count": 421, + "possibly_sensitive": False, + "retweet_count": 8867, "retweeted": False, - "source": 'Twitter Web App', - "text": "Academic research is some of the most impactful work that happens with the Twitter API. As we plan for the future o… https://t.co/dG3PmGWAJ4", - "truncated": True, + "source": 'Twitter Media Studio', + "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", + "created_at": "Wed Dec 19 20:20:32 +0000 2007", "default_profile": False, "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", + "description": "Explore the universe and our home planet with NASA \ud83c\udf0e We usually post in EDT.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", + "display_url": "nasa.gov", + "expanded_url": "http://www.nasa.gov/", "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", + "url": "https://t.co/HMJJbimQpV", } ] }, }, - "favourites_count": 2165, + "favourites_count": 11658, "follow_request_sent": None, - "followers_count": 509354, + "followers_count": 39440029, "following": None, - "friends_count": 2000, - "geo_enabled": True, + "friends_count": 222, + "geo_enabled": False, "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", + "id": 11348282, + "id_str": "11348282", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", + "listed_count": 92535, + "location": "", + "name": "NASA", "notifications": None, - "profile_background_color": "FFFFFF", + "profile_background_color": "000000", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/11348282/1596217000", + "profile_image_url": "http://pbs.twimg.com/profile_images/1091070803184177153/TI2qItoi_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/1091070803184177153/TI2qItoi_normal.jpg", + "profile_link_color": "205BA7", + "profile_sidebar_border_color": "000000", + "profile_sidebar_fill_color": "F3F2F2", + "profile_text_color": "000000", + "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, + "screen_name": "NASA", + "statuses_count": 61920, "time_zone": None, "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", + "url": "https://t.co/HMJJbimQpV", "utc_offset": None, "verified": True, }, }, - "source": 'TweetDeck', - "text": "RT @TwitterDev: Academic research is some of the most impactful work that happens with the Twitter API. As we plan for the future of our de…", + "source": 'Twitter for iPhone', "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, }, +] + +quoted_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Mon Jun 24 17:50:46 +0000 2019", + "created_at": "Wed Aug 05 00:05:24 +0000 2020", + "display_text_range": [0, 13], "entities": { "hashtags": [], "symbols": [], "urls": [ { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1143214899109277697", - "indices": [117, 140], - "url": "https://t.co/w8WoepBjeU", + "display_url": "twitter.com/hugolisoir/sta\u2026", + "expanded_url": "https://twitter.com/hugolisoir/status/1290778178793897992", + "indices": [14, 37], + "url": "https://t.co/WyznJwCJLp", } ], "user_mentions": [], }, - "favorite_count": 85, + "favorite_count": 576, "favorited": False, + "full_text": "Bonne nuit \ud83c\udf3a\ud83d\udeeb https://t.co/WyznJwCJLp", "geo": None, - "id": 1143214899109277697, - "id_str": "1143214899109277697", - "in_reply_to_screen_name": "TwitterAPI", - "in_reply_to_status_id": 1141392777600806912, - "in_reply_to_status_id_str": "1141392777600806912", - "in_reply_to_user_id": 6253282, - "in_reply_to_user_id_str": "6253282", - "is_quote_status": False, - "lang": "en", + "id": 1290801039075979264, + "id_str": "1290801039075979264", + "in_reply_to_screen_name": None, + "in_reply_to_status_id": None, + "in_reply_to_status_id_str": None, + "in_reply_to_user_id": None, + "in_reply_to_user_id_str": None, + "is_quote_status": True, + "lang": "fr", "place": None, "possibly_sensitive": False, - "retweet_count": 44, + "quoted_status": { + "contributors": None, + "coordinates": None, + "created_at": "Tue Aug 04 22:34:33 +0000 2020", + "display_text_range": [0, 57], + "entities": { + "hashtags": [{"indices": [0, 12], "text": "Starcitizen"}], + "media": [ + { + "display_url": "pic.twitter.com/xCXun68V3r", + "expanded_url": "https://twitter.com/hugolisoir/status/1290778178793897992/video/1", + "id": 1290778053623382017, + "id_str": "1290778053623382017", + "indices": [58, 81], + "media_url": "http://pbs.twimg.com/ext_tw_video_thumb/1290778053623382017/pu/img/FFHKsCa_gYLNrriu.jpg", + "media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/1290778053623382017/pu/img/FFHKsCa_gYLNrriu.jpg", + "sizes": { + "large": {"h": 720, "resize": "fit", "w": 1280}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/xCXun68V3r", + } + ], + "symbols": [], + "urls": [], + "user_mentions": [ + { + "id": 803542770, + "id_str": "803542770", + "indices": [41, 57], + "name": "Star Citizen", + "screen_name": "RobertsSpaceInd", + } + ], + }, + "extended_entities": { + "media": [ + { + "additional_media_info": {"monetizable": False}, + "display_url": "pic.twitter.com/xCXun68V3r", + "expanded_url": "https://twitter.com/hugolisoir/status/1290778178793897992/video/1", + "id": 1290778053623382017, + "id_str": "1290778053623382017", + "indices": [58, 81], + "media_url": "http://pbs.twimg.com/ext_tw_video_thumb/1290778053623382017/pu/img/FFHKsCa_gYLNrriu.jpg", + "media_url_https": "https://pbs.twimg.com/ext_tw_video_thumb/1290778053623382017/pu/img/FFHKsCa_gYLNrriu.jpg", + "sizes": { + "large": {"h": 720, "resize": "fit", "w": 1280}, + "medium": {"h": 675, "resize": "fit", "w": 1200}, + "small": {"h": 383, "resize": "fit", "w": 680}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "video", + "url": "https://t.co/xCXun68V3r", + "video_info": { + "aspect_ratio": [16, 9], + "duration_millis": 39901, + "variants": [ + { + "bitrate": 832000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/ext_tw_video/1290778053623382017/pu/vid/640x360/jYjO0H2SYSycTi-e.mp4?tag=10", + }, + { + "content_type": "application/x-mpegURL", + "url": "https://video.twimg.com/ext_tw_video/1290778053623382017/pu/pl/wFnVMLjVWi7OKy2o.m3u8?tag=10", + }, + { + "bitrate": 2176000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/ext_tw_video/1290778053623382017/pu/vid/1280x720/H-BXvYdM0AcSKXpk.mp4?tag=10", + }, + { + "bitrate": 256000, + "content_type": "video/mp4", + "url": "https://video.twimg.com/ext_tw_video/1290778053623382017/pu/vid/480x270/aWhSjP1gK7djKZUK.mp4?tag=10", + }, + ], + }, + } + ] + }, + "favorite_count": 400, + "favorited": False, + "full_text": "#Starcitizen Le jeu est beau. Bonne nuit @RobertsSpaceInd https://t.co/xCXun68V3r", + "geo": None, + "id": 1290778178793897992, + "id_str": "1290778178793897992", + "in_reply_to_screen_name": None, + "in_reply_to_status_id": None, + "in_reply_to_status_id_str": None, + "in_reply_to_user_id": None, + "in_reply_to_user_id_str": None, + "is_quote_status": False, + "lang": "fr", + "place": None, + "possibly_sensitive": False, + "retweet_count": 76, + "retweeted": False, + "source": 'Twitter Web App', + "truncated": False, + "user": { + "contributors_enabled": False, + "created_at": "Tue Mar 22 12:00:36 +0000 2011", + "default_profile": False, + "default_profile_image": False, + "description": "Youtuber Partner / Twitch Partner / Membre du @CurryClub_CC\nInsta - hugolisoir\nParrain de @AbyssalProject", + "entities": { + "description": {"urls": []}, + "url": { + "urls": [ + { + "display_url": "youtube.com/channel/UCDC6D\u2026", + "expanded_url": "https://www.youtube.com/channel/UCDC6DBi0kRp6Jk21xqfvFLA", + "indices": [0, 23], + "url": "https://t.co/p3CVR2I068", + } + ] + }, + }, + "favourites_count": 20935, + "follow_request_sent": None, + "followers_count": 23269, + "following": None, + "friends_count": 703, + "geo_enabled": True, + "has_extended_profile": False, + "id": 270320632, + "id_str": "270320632", + "is_translation_enabled": False, + "is_translator": False, + "lang": None, + "listed_count": 116, + "location": "Nantes, France", + "name": "Hugo Lisoir #ZLAN2020", + "notifications": None, + "profile_background_color": "000000", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme15/bg.png", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme15/bg.png", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/270320632/1499086260", + "profile_image_url": "http://pbs.twimg.com/profile_images/1264841251305730048/vyUJVCvW_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/1264841251305730048/vyUJVCvW_normal.jpg", + "profile_link_color": "ABB8C2", + "profile_sidebar_border_color": "000000", + "profile_sidebar_fill_color": "000000", + "profile_text_color": "000000", + "profile_use_background_image": False, + "protected": False, + "screen_name": "hugolisoir", + "statuses_count": 7507, + "time_zone": None, + "translator_type": "none", + "url": "https://t.co/p3CVR2I068", + "utc_offset": None, + "verified": False, + }, + }, + "quoted_status_id": 1290778178793897992, + "quoted_status_id_str": "1290778178793897992", + "quoted_status_permalink": { + "display": "twitter.com/hugolisoir/sta\u2026", + "expanded": "https://twitter.com/hugolisoir/status/1290778178793897992", + "url": "https://t.co/WyznJwCJLp", + }, + "retweet_count": 60, "retweeted": False, - "source": 'Twitter Web Client', - "text": "We’ve spoken with all developers who’ve contacted us to discuss these new rate limits and elevations, and as of tod… https://t.co/w8WoepBjeU", - "truncated": True, + "source": 'Twitter Web App', + "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, @@ -3170,25 +1622,27 @@ example_mock = [ { "contributors": None, "coordinates": None, - "created_at": "Wed Jun 19 17:10:18 +0000 2019", + "created_at": "Fri Jul 31 22:00:55 +0000 2020", + "display_text_range": [0, 32], "entities": { "hashtags": [], "symbols": [], "urls": [ { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1141392777600806912", - "indices": [117, 140], - "url": "https://t.co/ymDvv7r8lB", + "display_url": "twitter.com/UberFacts/stat\u2026", + "expanded_url": "https://twitter.com/UberFacts/status/1289273883493675009", + "indices": [33, 56], + "url": "https://t.co/LLPVr8oU7F", } ], "user_mentions": [], }, - "favorite_count": 90, + "favorite_count": 263, "favorited": False, + "full_text": "Here's to our lovely Avocados! \ud83d\udd79 https://t.co/LLPVr8oU7F", "geo": None, - "id": 1141392777600806912, - "id_str": "1141392777600806912", + "id": 1289320160021495809, + "id_str": "1289320160021495809", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, @@ -3201,344 +1655,497 @@ example_mock = [ "quoted_status": { "contributors": None, "coordinates": None, - "created_at": "Wed Jun 19 17:02:25 +0000 2019", + "created_at": "Fri Jul 31 18:57:02 +0000 2020", + "display_text_range": [0, 34], "entities": { "hashtags": [], - "symbols": [], - "urls": [ + "media": [ { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1141390793657266176", - "indices": [117, 140], - "url": "https://t.co/kFzCKybdkD", + "display_url": "pic.twitter.com/8QRycx9QB2", + "expanded_url": "https://twitter.com/UberFacts/status/1289273883493675009/photo/1", + "id": 1289273880570363907, + "id_str": "1289273880570363907", + "indices": [35, 58], + "media_url": "http://pbs.twimg.com/tweet_video_thumb/EeRrw3WWAAMKVF0.jpg", + "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/EeRrw3WWAAMKVF0.jpg", + "sizes": { + "large": {"h": 500, "resize": "fit", "w": 500}, + "medium": {"h": 500, "resize": "fit", "w": 500}, + "small": {"h": 500, "resize": "fit", "w": 500}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/8QRycx9QB2", } ], + "symbols": [], + "urls": [], "user_mentions": [], }, - "favorite_count": 46, + "extended_entities": { + "media": [ + { + "display_url": "pic.twitter.com/8QRycx9QB2", + "expanded_url": "https://twitter.com/UberFacts/status/1289273883493675009/photo/1", + "id": 1289273880570363907, + "id_str": "1289273880570363907", + "indices": [35, 58], + "media_url": "http://pbs.twimg.com/tweet_video_thumb/EeRrw3WWAAMKVF0.jpg", + "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/EeRrw3WWAAMKVF0.jpg", + "sizes": { + "large": {"h": 500, "resize": "fit", "w": 500}, + "medium": {"h": 500, "resize": "fit", "w": 500}, + "small": {"h": 500, "resize": "fit", "w": 500}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "animated_gif", + "url": "https://t.co/8QRycx9QB2", + "video_info": { + "aspect_ratio": [1, 1], + "variants": [ + { + "bitrate": 0, + "content_type": "video/mp4", + "url": "https://video.twimg.com/tweet_video/EeRrw3WWAAMKVF0.mp4", + } + ], + }, + } + ] + }, + "favorite_count": 1550, "favorited": False, + "full_text": "July 31st is National Avocado Day! https://t.co/8QRycx9QB2", "geo": None, - "id": 1141390793657266176, - "id_str": "1141390793657266176", + "id": 1289273883493675009, + "id_str": "1289273883493675009", "in_reply_to_screen_name": None, "in_reply_to_status_id": None, "in_reply_to_status_id_str": None, "in_reply_to_user_id": None, "in_reply_to_user_id_str": None, - "is_quote_status": True, + "is_quote_status": False, "lang": "en", "place": None, "possibly_sensitive": False, - "quoted_status_id": 1108050885639168000, - "quoted_status_id_str": "1108050885639168000", - "retweet_count": 19, + "retweet_count": 380, "retweeted": False, - "source": 'Twitter Web Client', - "text": "❗️Today, user and mentions timeline request limits go into effect. If you want to learn more about this change, tak… https://t.co/kFzCKybdkD", - "truncated": True, + "source": 'Buffer', + "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Sat Dec 14 04:35:55 +0000 2013", + "created_at": "Sun Dec 06 16:07:01 +0000 2009", "default_profile": False, "default_profile_image": False, - "description": "The voice of the #TwitterDev team and your official source for updates, news, and events, related to the #TwitterAPI.", + "description": "The most unimportant things you'll never need to know.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com/en/community", - "expanded_url": "https://developer.twitter.com/en/community", + "display_url": "uber-facts.com", + "expanded_url": "http://uber-facts.com/", "indices": [0, 23], - "url": "https://t.co/3ZX3TNiZCY", + "url": "https://t.co/3ycpGqEL9n", } ] }, }, - "favourites_count": 2165, + "favourites_count": 1297, "follow_request_sent": None, - "followers_count": 509354, + "followers_count": 13810392, "following": None, - "friends_count": 2000, + "friends_count": 1, "geo_enabled": True, - "has_extended_profile": True, - "id": 2244994945, - "id_str": "2244994945", - "is_translation_enabled": False, + "has_extended_profile": False, + "id": 95023423, + "id_str": "95023423", + "is_translation_enabled": True, "is_translator": False, "lang": None, - "listed_count": 1589, - "location": "127.0.0.1", - "name": "Twitter Dev", + "listed_count": 15141, + "location": "Worldwide!", + "name": "UberFacts", "notifications": None, - "profile_background_color": "FFFFFF", + "profile_background_color": "C0DEED", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_tile": False, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/2244994945/1594913664", - "profile_image_url": "http://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/1283786620521652229/lEODkLTh_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "FFFFFF", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/95023423/1587338728", + "profile_image_url": "http://pbs.twimg.com/profile_images/615696617165885440/JDbUuo9H_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/615696617165885440/JDbUuo9H_normal.jpg", + "profile_link_color": "0D9BA8", + "profile_sidebar_border_color": "000000", + "profile_sidebar_fill_color": "FFFFFF", + "profile_text_color": "000000", + "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterDev", - "statuses_count": 3576, + "screen_name": "UberFacts", + "statuses_count": 202253, "time_zone": None, "translator_type": "regular", - "url": "https://t.co/3ZX3TNiZCY", + "url": "https://t.co/3ycpGqEL9n", "utc_offset": None, "verified": True, }, }, - "quoted_status_id": 1141390793657266176, - "quoted_status_id_str": "1141390793657266176", - "retweet_count": 70, + "quoted_status_id": 1289273883493675009, + "quoted_status_id_str": "1289273883493675009", + "quoted_status_permalink": { + "display": "twitter.com/UberFacts/stat\u2026", + "expanded": "https://twitter.com/UberFacts/status/1289273883493675009", + "url": "https://t.co/LLPVr8oU7F", + }, + "retweet_count": 24, "retweeted": False, - "source": 'Twitter Web Client', - "text": "Request limit change: today, we're implementing a change to two commonly used Twitter standard API endpoints - user… https://t.co/ymDvv7r8lB", - "truncated": True, + "source": 'Twitter Web App', + "truncated": False, "user": { "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", + "created_at": "Wed Sep 05 00:58:11 +0000 2012", "default_profile": False, "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", "entities": { "description": {"urls": []}, "url": { "urls": [ { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", + "url": "https://t.co/iqO6apof3y", } ] }, }, - "favourites_count": 3, + "favourites_count": 4588, "follow_request_sent": None, - "followers_count": 6052538, + "followers_count": 106169, "following": None, - "friends_count": 32, + "friends_count": 201, "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", "is_translation_enabled": False, "is_translator": False, "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", "profile_text_color": "333333", "profile_use_background_image": True, "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Wed Jun 12 17:36:26 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1138862637394137093", - "indices": [116, 139], - "url": "https://t.co/JAUtpAZotb", - } - ], - "user_mentions": [], - }, - "favorite_count": 62, - "favorited": False, - "geo": None, - "id": 1138862637394137093, - "id_str": "1138862637394137093", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 40, - "retweeted": False, - "source": 'Twitter Web Client', - "text": "Reminder: only 1⃣ week until the rate limit change to user and mentions timeline endpoints will go into effect. If… https://t.co/JAUtpAZotb", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", - "utc_offset": None, - "verified": True, - }, - }, - { - "contributors": None, - "coordinates": None, - "created_at": "Tue Jun 11 22:13:27 +0000 2019", - "entities": { - "hashtags": [], - "symbols": [], - "urls": [ - { - "display_url": "twitter.com/i/web/status/1…", - "expanded_url": "https://twitter.com/i/web/status/1138569964032385025", - "indices": [117, 140], - "url": "https://t.co/qMtoumuG1e", - } - ], - "user_mentions": [], - }, - "favorite_count": 121, - "favorited": False, - "geo": None, - "id": 1138569964032385025, - "id_str": "1138569964032385025", - "in_reply_to_screen_name": None, - "in_reply_to_status_id": None, - "in_reply_to_status_id_str": None, - "in_reply_to_user_id": None, - "in_reply_to_user_id_str": None, - "is_quote_status": False, - "lang": "en", - "place": None, - "possibly_sensitive": False, - "retweet_count": 91, - "retweeted": False, - "source": 'Twitter Web Client', - "text": "Starting July 15, 2019, all connections to the Twitter API (and all other Twitter domains) will require TLS 1.2. Re… https://t.co/qMtoumuG1e", - "truncated": True, - "user": { - "contributors_enabled": False, - "created_at": "Wed May 23 06:01:13 +0000 2007", - "default_profile": False, - "default_profile_image": False, - "description": "Tweets about changes and service issues. Follow @TwitterDev for more.", - "entities": { - "description": {"urls": []}, - "url": { - "urls": [ - { - "display_url": "developer.twitter.com", - "expanded_url": "https://developer.twitter.com", - "indices": [0, 23], - "url": "https://t.co/8IkCzCDr19", - } - ] - }, - }, - "favourites_count": 3, - "follow_request_sent": None, - "followers_count": 6052538, - "following": None, - "friends_count": 32, - "geo_enabled": False, - "has_extended_profile": True, - "id": 6253282, - "id_str": "6253282", - "is_translation_enabled": False, - "is_translator": False, - "lang": None, - "listed_count": 12307, - "location": "", - "name": "Twitter API", - "notifications": None, - "profile_background_color": "C0DEED", - "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", - "profile_background_tile": True, - "profile_banner_url": "https://pbs.twimg.com/profile_banners/6253282/1497491515", - "profile_image_url": "http://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_image_url_https": "https://pbs.twimg.com/profile_images/942858479592554497/BbazLO9L_normal.jpg", - "profile_link_color": "0084B4", - "profile_sidebar_border_color": "C0DEED", - "profile_sidebar_fill_color": "DDEEF6", - "profile_text_color": "333333", - "profile_use_background_image": True, - "protected": False, - "screen_name": "TwitterAPI", - "statuses_count": 3679, - "time_zone": None, - "translator_type": "regular", - "url": "https://t.co/8IkCzCDr19", + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", + "utc_offset": None, + "verified": True, + }, + }, +] + +gif_mock = [ + { + "contributors": None, + "coordinates": None, + "created_at": "Fri Jul 31 23:10:55 +0000 2020", + "display_text_range": [12, 12], + "entities": { + "hashtags": [], + "media": [ + { + "display_url": "pic.twitter.com/wxvioLCJ6h", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1289337776140296193/photo/1", + "id": 1289337769521606656, + "id_str": "1289337769521606656", + "indices": [13, 36], + "media_url": "http://pbs.twimg.com/tweet_video_thumb/EeSl3sPUcAAyE4J.jpg", + "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/EeSl3sPUcAAyE4J.jpg", + "sizes": { + "large": {"h": 210, "resize": "fit", "w": 250}, + "medium": {"h": 210, "resize": "fit", "w": 250}, + "small": {"h": 210, "resize": "fit", "w": 250}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/wxvioLCJ6h", + } + ], + "symbols": [], + "urls": [], + "user_mentions": [ + { + "id": 994361231057346561, + "id_str": "994361231057346561", + "indices": [0, 12], + "name": "Xenosystems", + "screen_name": "Xenosystems", + } + ], + }, + "extended_entities": { + "media": [ + { + "display_url": "pic.twitter.com/wxvioLCJ6h", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1289337776140296193/photo/1", + "id": 1289337769521606656, + "id_str": "1289337769521606656", + "indices": [13, 36], + "media_url": "http://pbs.twimg.com/tweet_video_thumb/EeSl3sPUcAAyE4J.jpg", + "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/EeSl3sPUcAAyE4J.jpg", + "sizes": { + "large": {"h": 210, "resize": "fit", "w": 250}, + "medium": {"h": 210, "resize": "fit", "w": 250}, + "small": {"h": 210, "resize": "fit", "w": 250}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "animated_gif", + "url": "https://t.co/wxvioLCJ6h", + "video_info": { + "aspect_ratio": [25, 21], + "variants": [ + { + "bitrate": 0, + "content_type": "video/mp4", + "url": "https://video.twimg.com/tweet_video/EeSl3sPUcAAyE4J.mp4", + } + ], + }, + } + ] + }, + "favorite_count": 13, + "favorited": False, + "full_text": "@Xenosystems https://t.co/wxvioLCJ6h", + "geo": None, + "id": 1289337776140296193, + "id_str": "1289337776140296193", + "in_reply_to_screen_name": "Xenosystems", + "in_reply_to_status_id": 1289324787815178242, + "in_reply_to_status_id_str": "1289324787815178242", + "in_reply_to_user_id": 994361231057346561, + "in_reply_to_user_id_str": "994361231057346561", + "is_quote_status": False, + "lang": "und", + "place": None, + "possibly_sensitive": False, + "retweet_count": 1, + "retweeted": False, + "source": 'Twitter Web App', + "truncated": False, + "user": { + "contributors_enabled": False, + "created_at": "Wed Sep 05 00:58:11 +0000 2012", + "default_profile": False, + "default_profile_image": False, + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", + "entities": { + "description": {"urls": []}, + "url": { + "urls": [ + { + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", + "indices": [0, 23], + "url": "https://t.co/iqO6apof3y", + } + ] + }, + }, + "favourites_count": 4588, + "follow_request_sent": None, + "followers_count": 106169, + "following": None, + "friends_count": 201, + "geo_enabled": False, + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", + "is_translation_enabled": False, + "is_translator": False, + "lang": None, + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", + "notifications": None, + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", + "profile_text_color": "333333", + "profile_use_background_image": True, + "protected": False, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, + "time_zone": None, + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", + "utc_offset": None, + "verified": True, + }, + }, + { + "contributors": None, + "coordinates": None, + "created_at": "Thu Jul 30 22:30:29 +0000 2020", + "display_text_range": [12, 12], + "entities": { + "hashtags": [], + "media": [ + { + "display_url": "pic.twitter.com/DTbhK1pTc4", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1288965215648849920/photo/1", + "id": 1288965209596420097, + "id_str": "1288965209596420097", + "indices": [13, 36], + "media_url": "http://pbs.twimg.com/tweet_video_thumb/EeNTB2XU4AE-z5Y.jpg", + "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/EeNTB2XU4AE-z5Y.jpg", + "sizes": { + "large": {"h": 278, "resize": "fit", "w": 498}, + "medium": {"h": 278, "resize": "fit", "w": 498}, + "small": {"h": 278, "resize": "fit", "w": 498}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "photo", + "url": "https://t.co/DTbhK1pTc4", + } + ], + "symbols": [], + "urls": [], + "user_mentions": [ + { + "id": 994361231057346561, + "id_str": "994361231057346561", + "indices": [0, 12], + "name": "Xenosystems", + "screen_name": "Xenosystems", + } + ], + }, + "extended_entities": { + "media": [ + { + "display_url": "pic.twitter.com/DTbhK1pTc4", + "expanded_url": "https://twitter.com/RobertsSpaceInd/status/1288965215648849920/photo/1", + "id": 1288965209596420097, + "id_str": "1288965209596420097", + "indices": [13, 36], + "media_url": "http://pbs.twimg.com/tweet_video_thumb/EeNTB2XU4AE-z5Y.jpg", + "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/EeNTB2XU4AE-z5Y.jpg", + "sizes": { + "large": {"h": 278, "resize": "fit", "w": 498}, + "medium": {"h": 278, "resize": "fit", "w": 498}, + "small": {"h": 278, "resize": "fit", "w": 498}, + "thumb": {"h": 150, "resize": "crop", "w": 150}, + }, + "type": "animated_gif", + "url": "https://t.co/DTbhK1pTc4", + "video_info": { + "aspect_ratio": [249, 139], + "variants": [ + { + "bitrate": 0, + "content_type": "video/mp4", + "url": "https://video.twimg.com/tweet_video/EeNTB2XU4AE-z5Y.mp4", + } + ], + }, + } + ] + }, + "favorite_count": 20, + "favorited": False, + "full_text": "@Xenosystems https://t.co/DTbhK1pTc4", + "geo": None, + "id": 1288965215648849920, + "id_str": "1288965215648849920", + "in_reply_to_screen_name": "Xenosystems", + "in_reply_to_status_id": 1288960722349719554, + "in_reply_to_status_id_str": "1288960722349719554", + "in_reply_to_user_id": 994361231057346561, + "in_reply_to_user_id_str": "994361231057346561", + "is_quote_status": False, + "lang": "und", + "place": None, + "possibly_sensitive": False, + "retweet_count": 0, + "retweeted": False, + "source": 'Twitter Web App', + "truncated": False, + "user": { + "contributors_enabled": False, + "created_at": "Wed Sep 05 00:58:11 +0000 2012", + "default_profile": False, + "default_profile_image": False, + "description": "The official Twitter profile for #StarCitizen and Roberts Space Industries.", + "entities": { + "description": {"urls": []}, + "url": { + "urls": [ + { + "display_url": "robertsspaceindustries.com", + "expanded_url": "http://www.robertsspaceindustries.com", + "indices": [0, 23], + "url": "https://t.co/iqO6apof3y", + } + ] + }, + }, + "favourites_count": 4588, + "follow_request_sent": None, + "followers_count": 106169, + "following": None, + "friends_count": 201, + "geo_enabled": False, + "has_extended_profile": False, + "id": 803542770, + "id_str": "803542770", + "is_translation_enabled": False, + "is_translator": False, + "lang": None, + "listed_count": 890, + "location": "Roberts Space Industries", + "name": "Star Citizen", + "notifications": None, + "profile_background_color": "131516", + "profile_background_image_url": "http://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme14/bg.gif", + "profile_background_tile": False, + "profile_banner_url": "https://pbs.twimg.com/profile_banners/803542770/1596651186", + "profile_image_url": "http://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_image_url_https": "https://pbs.twimg.com/profile_images/963109950103814144/ysnj_Asy_normal.jpg", + "profile_link_color": "0A5485", + "profile_sidebar_border_color": "FFFFFF", + "profile_sidebar_fill_color": "EFEFEF", + "profile_text_color": "333333", + "profile_use_background_image": True, + "protected": False, + "screen_name": "RobertsSpaceInd", + "statuses_count": 6210, + "time_zone": None, + "translator_type": "none", + "url": "https://t.co/iqO6apof3y", "utc_offset": None, "verified": True, }, diff --git a/src/newsreader/news/collection/tests/twitter/builder/tests.py b/src/newsreader/news/collection/tests/twitter/builder/tests.py index e69de29..0488e95 100644 --- a/src/newsreader/news/collection/tests/twitter/builder/tests.py +++ b/src/newsreader/news/collection/tests/twitter/builder/tests.py @@ -0,0 +1,62 @@ +from unittest import skip + +from django.test import TestCase + + +class TwitterBuilderTestCase(TestCase): + def setUp(self): + self.maxDiff = None + + @skip("Not implemented") + def test_simple_post(self): + pass + + # Note that only one media type can be uploaded to an Tweet + # see https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/extended-entities-object + @skip("Not implemented") + def test_images_in_post(self): + pass + + @skip("Not implemented") + def test_videos_in_post(self): + pass + + @skip("Not implemented") + def test_GIFs_in_post(self): + pass + + @skip("Not implemented") + def test_retweet_post(self): + pass + + @skip("Not implemented") + def test_quoted_post(self): + pass + + @skip("Not implemented") + def test_images_in_quoted_post(self): + pass + + @skip("Not implemented") + def test_videos_in_quoted_post(self): + pass + + @skip("Not implemented") + def test_GIFs_in_quoted_post(self): + pass + + @skip("Not implemented") + def test_empty_data(self): + pass + + @skip("Not implemented") + def test_update_posts(self): + pass + + @skip("Not implemented") + def test_html_sanitizing(self): + pass + + @skip("Not implemented") + def test_duplicate_in_data(self): + pass