Move all the raw tweets for tests into their own JSON files
Seems better to have the raw data as JSON, like it comes from the API, then load it into python objects for each test.
This commit is contained in:
parent
5c55aa8844
commit
5a008e7e77
12 changed files with 1010 additions and 49 deletions
170
tests/tweets/basic.json
Normal file
170
tests/tweets/basic.json
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
{
|
||||
"contributors":null,
|
||||
"truncated":false,
|
||||
"text":"http://t.co/FCmXyI6VHd is a #cool site, lol! @mikehelmick shd #checkitout. Love, @__twython__ https://t.co/67pwRvY6z9 http://t.co/N6InAO4B71",
|
||||
"in_reply_to_status_id":null,
|
||||
"id":349683012054683648,
|
||||
"favorite_count":0,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
{
|
||||
"id":29251354,
|
||||
"indices":[
|
||||
45,
|
||||
57
|
||||
],
|
||||
"id_str":"29251354",
|
||||
"screen_name":"mikehelmick",
|
||||
"name":"Mike Helmick"
|
||||
},
|
||||
{
|
||||
"id":1431865928,
|
||||
"indices":[
|
||||
81,
|
||||
93
|
||||
],
|
||||
"id_str":"1431865928",
|
||||
"screen_name":"__twython__",
|
||||
"name":"Twython"
|
||||
}
|
||||
],
|
||||
"hashtags":[
|
||||
{
|
||||
"indices":[
|
||||
28,
|
||||
33
|
||||
],
|
||||
"text":"cool"
|
||||
},
|
||||
{
|
||||
"indices":[
|
||||
62,
|
||||
73
|
||||
],
|
||||
"text":"checkitout"
|
||||
}
|
||||
],
|
||||
"urls":[
|
||||
{
|
||||
"url":"http://t.co/FCmXyI6VHd",
|
||||
"indices":[
|
||||
0,
|
||||
22
|
||||
],
|
||||
"expanded_url":"http://google.com",
|
||||
"display_url":"google.com"
|
||||
},
|
||||
{
|
||||
"url":"https://t.co/67pwRvY6z9",
|
||||
"indices":[
|
||||
94,
|
||||
117
|
||||
],
|
||||
"expanded_url":"https://github.com",
|
||||
"display_url":"github.com"
|
||||
}
|
||||
],
|
||||
"media":[
|
||||
{
|
||||
"id":537884378513162240,
|
||||
"id_str":"537884378513162240",
|
||||
"indices":[
|
||||
118,
|
||||
140
|
||||
],
|
||||
"media_url":"http://pbs.twimg.com/media/B3by_g-CQAAhrO5.jpg",
|
||||
"media_url_https":"https://pbs.twimg.com/media/B3by_g-CQAAhrO5.jpg",
|
||||
"url":"http://t.co/N6InAO4B71",
|
||||
"display_url":"pic.twitter.com/N6InAO4B71",
|
||||
"expanded_url":"http://twitter.com/pingofglitch/status/537884380060844032/photo/1",
|
||||
"type":"photo",
|
||||
"sizes":{
|
||||
"large":{
|
||||
"w":1024,
|
||||
"h":640,
|
||||
"resize":"fit"
|
||||
},
|
||||
"thumb":{
|
||||
"w":150,
|
||||
"h":150,
|
||||
"resize":"crop"
|
||||
},
|
||||
"medium":{
|
||||
"w":600,
|
||||
"h":375,
|
||||
"resize":"fit"
|
||||
},
|
||||
"small":{
|
||||
"w":340,
|
||||
"h":212,
|
||||
"resize":"fit"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"id_str":"349683012054683648",
|
||||
"retweet_count":0,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"follow_request_sent":false,
|
||||
"profile_use_background_image":true,
|
||||
"default_profile_image":true,
|
||||
"id":1431865928,
|
||||
"verified":false,
|
||||
"profile_text_color":"333333",
|
||||
"profile_image_url_https":"https://si0.twimg.com/sticky/default_profile_images/default_profile_3_normal.png",
|
||||
"profile_sidebar_fill_color":"DDEEF6",
|
||||
"entities":{
|
||||
"description":{
|
||||
"urls":[
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
"followers_count":1,
|
||||
"profile_sidebar_border_color":"C0DEED",
|
||||
"id_str":"1431865928",
|
||||
"profile_background_color":"3D3D3D",
|
||||
"listed_count":0,
|
||||
"profile_background_image_url_https":"https://si0.twimg.com/images/themes/theme1/bg.png",
|
||||
"utc_offset":null,
|
||||
"statuses_count":2,
|
||||
"description":"",
|
||||
"friends_count":1,
|
||||
"location":"",
|
||||
"profile_link_color":"0084B4",
|
||||
"profile_image_url":"http://a0.twimg.com/sticky/default_profile_images/default_profile_3_normal.png",
|
||||
"following":false,
|
||||
"geo_enabled":false,
|
||||
"profile_background_image_url":"http://a0.twimg.com/images/themes/theme1/bg.png",
|
||||
"screen_name":"__twython__",
|
||||
"lang":"en",
|
||||
"profile_background_tile":false,
|
||||
"favourites_count":0,
|
||||
"name":"Twython",
|
||||
"notifications":false,
|
||||
"url":null,
|
||||
"created_at":"Thu May 16 01:11:09 +0000 2013",
|
||||
"contributors_enabled":false,
|
||||
"time_zone":null,
|
||||
"protected":false,
|
||||
"default_profile":false,
|
||||
"is_translator":false
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"possibly_sensitive":false,
|
||||
"lang":"en",
|
||||
"created_at":"Wed Jun 26 00:18:21 +0000 2013",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null
|
||||
}
|
||||
51
tests/tweets/compat.json
Normal file
51
tests/tweets/compat.json
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"contributors":null,
|
||||
"truncated":true,
|
||||
"text":"Say more about what's happening! Rolling out now: photos, videos, GIFs, polls, and Quote Tweets no longer count tow\u2026 https://t.co/SRmsuks2ru",
|
||||
"is_quote_status":false,
|
||||
"in_reply_to_status_id":null,
|
||||
"id":777915304261193728,
|
||||
"favorite_count":13856,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
{
|
||||
"url":"https://t.co/SRmsuks2ru",
|
||||
"indices":[
|
||||
117,
|
||||
140
|
||||
],
|
||||
"expanded_url":"https://twitter.com/i/web/status/777915304261193728",
|
||||
"display_url":"twitter.com/i/web/status/7\u2026"
|
||||
}
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"id_str":"777915304261193728",
|
||||
"retweet_count":14767,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"name":"Twitter",
|
||||
"screen_name":"twitter"
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"possibly_sensitive":false,
|
||||
"possibly_sensitive_appealable":false,
|
||||
"lang":"en",
|
||||
"created_at":"Mon Sep 19 17:00:36 +0000 2016",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null
|
||||
}
|
||||
204
tests/tweets/extended.json
Normal file
204
tests/tweets/extended.json
Normal file
|
|
@ -0,0 +1,204 @@
|
|||
{
|
||||
"full_text":"Say more about what's happening! Rolling out now: photos, videos, GIFs, polls, and Quote Tweets no longer count toward your 140 characters. https://t.co/I9pUC0NdZC",
|
||||
"truncated":false,
|
||||
"is_quote_status":false,
|
||||
"in_reply_to_status_id":null,
|
||||
"id":777915304261193728,
|
||||
"favorite_count":13856,
|
||||
"contributors":null,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
|
||||
],
|
||||
"media":[
|
||||
{
|
||||
"expanded_url":"https://twitter.com/twitter/status/777915304261193728/photo/1",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":340,
|
||||
"w":340,
|
||||
"resize":"fit"
|
||||
},
|
||||
"large":{
|
||||
"h":700,
|
||||
"w":700,
|
||||
"resize":"fit"
|
||||
},
|
||||
"medium":{
|
||||
"h":600,
|
||||
"w":600,
|
||||
"resize":"fit"
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"w":150,
|
||||
"resize":"crop"
|
||||
}
|
||||
},
|
||||
"url":"https://t.co/I9pUC0NdZC",
|
||||
"media_url_https":"https://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg",
|
||||
"id_str":"777914712382058496",
|
||||
"indices":[
|
||||
140,
|
||||
163
|
||||
],
|
||||
"media_url":"http://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg",
|
||||
"type":"photo",
|
||||
"id":777914712382058496,
|
||||
"display_url":"pic.twitter.com/I9pUC0NdZC"
|
||||
}
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"id_str":"777915304261193728",
|
||||
"display_text_range":[
|
||||
0,
|
||||
139
|
||||
],
|
||||
"retweet_count":14767,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"follow_request_sent":false,
|
||||
"has_extended_profile":false,
|
||||
"profile_use_background_image":true,
|
||||
"id":783214,
|
||||
"verified":true,
|
||||
"profile_text_color":"333333",
|
||||
"profile_image_url_https":"https://pbs.twimg.com/profile_images/767879603977191425/29zfZY6I_normal.jpg",
|
||||
"profile_sidebar_fill_color":"F6F6F6",
|
||||
"is_translator":false,
|
||||
"geo_enabled":true,
|
||||
"entities":{
|
||||
"url":{
|
||||
"urls":[
|
||||
{
|
||||
"url":"http://t.co/5iRhy7wTgu",
|
||||
"indices":[
|
||||
0,
|
||||
22
|
||||
],
|
||||
"expanded_url":"http://blog.twitter.com/",
|
||||
"display_url":"blog.twitter.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"description":{
|
||||
"urls":[
|
||||
{
|
||||
"url":"https://t.co/qq1HEzvnrA",
|
||||
"indices":[
|
||||
84,
|
||||
107
|
||||
],
|
||||
"expanded_url":"http://support.twitter.com",
|
||||
"display_url":"support.twitter.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"followers_count":56827498,
|
||||
"protected":false,
|
||||
"location":"San Francisco, CA",
|
||||
"default_profile_image":false,
|
||||
"id_str":"783214",
|
||||
"lang":"en",
|
||||
"utc_offset":-25200,
|
||||
"statuses_count":3161,
|
||||
"description":"Your official source for news, updates and tips from Twitter, Inc. Need help? Visit https://t.co/qq1HEzvnrA.",
|
||||
"friends_count":145,
|
||||
"profile_link_color":"226699",
|
||||
"profile_image_url":"http://pbs.twimg.com/profile_images/767879603977191425/29zfZY6I_normal.jpg",
|
||||
"notifications":false,
|
||||
"profile_background_image_url_https":"https://pbs.twimg.com/profile_background_images/657090062/l1uqey5sy82r9ijhke1i.png",
|
||||
"profile_background_color":"ACDED6",
|
||||
"profile_banner_url":"https://pbs.twimg.com/profile_banners/783214/1471929200",
|
||||
"profile_background_image_url":"http://pbs.twimg.com/profile_background_images/657090062/l1uqey5sy82r9ijhke1i.png",
|
||||
"name":"Twitter",
|
||||
"is_translation_enabled":false,
|
||||
"profile_background_tile":true,
|
||||
"favourites_count":2332,
|
||||
"screen_name":"twitter",
|
||||
"url":"http://t.co/5iRhy7wTgu",
|
||||
"created_at":"Tue Feb 20 14:35:54 +0000 2007",
|
||||
"contributors_enabled":false,
|
||||
"time_zone":"Pacific Time (US & Canada)",
|
||||
"profile_sidebar_border_color":"FFFFFF",
|
||||
"default_profile":false,
|
||||
"following":false,
|
||||
"listed_count":90445
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"possibly_sensitive":false,
|
||||
"possibly_sensitive_appealable":false,
|
||||
"lang":"en",
|
||||
"created_at":"Mon Sep 19 17:00:36 +0000 2016",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null,
|
||||
"extended_entities":{
|
||||
"media":[
|
||||
{
|
||||
"expanded_url":"https://twitter.com/twitter/status/777915304261193728/photo/1",
|
||||
"display_url":"pic.twitter.com/I9pUC0NdZC",
|
||||
"url":"https://t.co/I9pUC0NdZC",
|
||||
"media_url_https":"https://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg",
|
||||
"video_info":{
|
||||
"aspect_ratio":[
|
||||
1,
|
||||
1
|
||||
],
|
||||
"variants":[
|
||||
{
|
||||
"url":"https://pbs.twimg.com/tweet_video/Csu1TzEVMAAAEv7.mp4",
|
||||
"bitrate":0,
|
||||
"content_type":"video/mp4"
|
||||
}
|
||||
]
|
||||
},
|
||||
"id_str":"777914712382058496",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":340,
|
||||
"w":340,
|
||||
"resize":"fit"
|
||||
},
|
||||
"large":{
|
||||
"h":700,
|
||||
"w":700,
|
||||
"resize":"fit"
|
||||
},
|
||||
"medium":{
|
||||
"h":600,
|
||||
"w":600,
|
||||
"resize":"fit"
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"w":150,
|
||||
"resize":"crop"
|
||||
}
|
||||
},
|
||||
"indices":[
|
||||
140,
|
||||
163
|
||||
],
|
||||
"type":"animated_gif",
|
||||
"id":777914712382058496,
|
||||
"media_url":"http://pbs.twimg.com/tweet_video_thumb/Csu1TzEVMAAAEv7.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
34
tests/tweets/identical_urls.json
Normal file
34
tests/tweets/identical_urls.json
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"entities":{
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
{
|
||||
"display_url":"buff.ly/2sEhrgO",
|
||||
"expanded_url":"http://buff.ly/2sEhrgO",
|
||||
"indices":[
|
||||
42,
|
||||
65
|
||||
],
|
||||
"url":"https://t.co/W0uArTMk9N"
|
||||
},
|
||||
{
|
||||
"display_url":"buff.ly/2sEhrgO",
|
||||
"expanded_url":"http://buff.ly/2sEhrgO",
|
||||
"indices":[
|
||||
101,
|
||||
124
|
||||
],
|
||||
"url":"https://t.co/W0uArTMk9N"
|
||||
}
|
||||
]
|
||||
},
|
||||
"full_text":"Use Cases, Trials and Making 5G a Reality https://t.co/W0uArTMk9N #5G #innovation via @5GWorldSeries https://t.co/W0uArTMk9N"
|
||||
}
|
||||
205
tests/tweets/media.json
Normal file
205
tests/tweets/media.json
Normal file
|
|
@ -0,0 +1,205 @@
|
|||
{
|
||||
"contributors":null,
|
||||
"truncated":false,
|
||||
"is_quote_status":false,
|
||||
"in_reply_to_status_id":null,
|
||||
"id":905105588279013377,
|
||||
"favorite_count":10,
|
||||
"full_text":"I made some D3.js charts showing the years covered by books in a series compared to their publishing dates https://t.co/2yUmmn3TOc https://t.co/OwNc6uJklg",
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
{
|
||||
"url":"https://t.co/2yUmmn3TOc",
|
||||
"indices":[
|
||||
107,
|
||||
130
|
||||
],
|
||||
"expanded_url":"http://www.gyford.com/phil/writing/2017/09/05/book-series-charts.php",
|
||||
"display_url":"gyford.com/phil/writing/2\u2026"
|
||||
}
|
||||
],
|
||||
"media":[
|
||||
{
|
||||
"expanded_url":"https://twitter.com/philgyford/status/905105588279013377/photo/1",
|
||||
"display_url":"pic.twitter.com/OwNc6uJklg",
|
||||
"url":"https://t.co/OwNc6uJklg",
|
||||
"media_url_https":"https://pbs.twimg.com/media/DI-UuNlWAAA_cvz.jpg",
|
||||
"id_str":"905105571765944320",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":256,
|
||||
"resize":"fit",
|
||||
"w":680
|
||||
},
|
||||
"large":{
|
||||
"h":376,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"medium":{
|
||||
"h":376,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"resize":"crop",
|
||||
"w":150
|
||||
}
|
||||
},
|
||||
"indices":[
|
||||
131,
|
||||
154
|
||||
],
|
||||
"type":"photo",
|
||||
"id":905105571765944320,
|
||||
"media_url":"http://pbs.twimg.com/media/DI-UuNlWAAA_cvz.jpg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"in_reply_to_user_id":null,
|
||||
"display_text_range":[
|
||||
0,
|
||||
130
|
||||
],
|
||||
"retweet_count":1,
|
||||
"id_str":"905105588279013377",
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"screen_name":"philgyford",
|
||||
"name":"Phil Gyford"
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"possibly_sensitive":false,
|
||||
"possibly_sensitive_appealable":false,
|
||||
"lang":"en",
|
||||
"created_at":"Tue Sep 05 16:29:22 +0000 2017",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null,
|
||||
"extended_entities":{
|
||||
"media":[
|
||||
{
|
||||
"expanded_url":"https://twitter.com/philgyford/status/905105588279013377/photo/1",
|
||||
"display_url":"pic.twitter.com/OwNc6uJklg",
|
||||
"url":"https://t.co/OwNc6uJklg",
|
||||
"media_url_https":"https://pbs.twimg.com/media/DI-UuNlWAAA_cvz.jpg",
|
||||
"id_str":"905105571765944320",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":256,
|
||||
"resize":"fit",
|
||||
"w":680
|
||||
},
|
||||
"large":{
|
||||
"h":376,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"medium":{
|
||||
"h":376,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"resize":"crop",
|
||||
"w":150
|
||||
}
|
||||
},
|
||||
"indices":[
|
||||
131,
|
||||
154
|
||||
],
|
||||
"type":"photo",
|
||||
"id":905105571765944320,
|
||||
"media_url":"http://pbs.twimg.com/media/DI-UuNlWAAA_cvz.jpg"
|
||||
},
|
||||
{
|
||||
"expanded_url":"https://twitter.com/philgyford/status/905105588279013377/photo/1",
|
||||
"display_url":"pic.twitter.com/OwNc6uJklg",
|
||||
"url":"https://t.co/OwNc6uJklg",
|
||||
"media_url_https":"https://pbs.twimg.com/media/DI-UuQbXUAQ1WlR.jpg",
|
||||
"id_str":"905105572529393668",
|
||||
"sizes":{
|
||||
"large":{
|
||||
"h":399,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"small":{
|
||||
"h":271,
|
||||
"resize":"fit",
|
||||
"w":680
|
||||
},
|
||||
"medium":{
|
||||
"h":399,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"resize":"crop",
|
||||
"w":150
|
||||
}
|
||||
},
|
||||
"indices":[
|
||||
131,
|
||||
154
|
||||
],
|
||||
"type":"photo",
|
||||
"id":905105572529393668,
|
||||
"media_url":"http://pbs.twimg.com/media/DI-UuQbXUAQ1WlR.jpg"
|
||||
},
|
||||
{
|
||||
"expanded_url":"https://twitter.com/philgyford/status/905105588279013377/photo/1",
|
||||
"display_url":"pic.twitter.com/OwNc6uJklg",
|
||||
"url":"https://t.co/OwNc6uJklg",
|
||||
"media_url_https":"https://pbs.twimg.com/media/DI-UuTIXcAA-t1_.jpg",
|
||||
"id_str":"905105573255016448",
|
||||
"sizes":{
|
||||
"small":{
|
||||
"h":195,
|
||||
"resize":"fit",
|
||||
"w":680
|
||||
},
|
||||
"large":{
|
||||
"h":287,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"medium":{
|
||||
"h":287,
|
||||
"resize":"fit",
|
||||
"w":1000
|
||||
},
|
||||
"thumb":{
|
||||
"h":150,
|
||||
"resize":"crop",
|
||||
"w":150
|
||||
}
|
||||
},
|
||||
"indices":[
|
||||
131,
|
||||
154
|
||||
],
|
||||
"type":"photo",
|
||||
"id":905105573255016448,
|
||||
"media_url":"http://pbs.twimg.com/media/DI-UuTIXcAA-t1_.jpg"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
94
tests/tweets/quoted.json
Normal file
94
tests/tweets/quoted.json
Normal file
|
|
@ -0,0 +1,94 @@
|
|||
{
|
||||
"contributors":null,
|
||||
"truncated":false,
|
||||
"text":"Here\u2019s a quoted tweet. https://t.co/3neKzof0gT",
|
||||
"is_quote_status":true,
|
||||
"in_reply_to_status_id":null,
|
||||
"id":917706313785905157,
|
||||
"favorite_count":0,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"quoted_status_id":917699069916729344,
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"quoted_status":{
|
||||
"contributors":null,
|
||||
"truncated":false,
|
||||
"text":"The quoted tweet text.",
|
||||
"is_quote_status":false,
|
||||
"in_reply_to_status_id":null,
|
||||
"id":917699069916729344,
|
||||
"favorite_count":1,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"in_reply_to_user_id":null,
|
||||
"retweet_count":0,
|
||||
"id_str":"917699069916729344",
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"screen_name":"philgyford",
|
||||
"name":"Phil Gyford"
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"lang":"ht",
|
||||
"created_at":"Tue Oct 10 10:31:22 +0000 2017",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null
|
||||
},
|
||||
"entities":{
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
{
|
||||
"url":"https://t.co/3neKzof0gT",
|
||||
"indices":[
|
||||
23,
|
||||
46
|
||||
],
|
||||
"expanded_url":"https://twitter.com/philgyford/status/917699069916729344",
|
||||
"display_url":"twitter.com/philgyford/sta\u2026"
|
||||
}
|
||||
]
|
||||
},
|
||||
"in_reply_to_screen_name":null,
|
||||
"in_reply_to_user_id":null,
|
||||
"retweet_count":0,
|
||||
"id_str":"917706313785905157",
|
||||
"favorited":false,
|
||||
"user":{
|
||||
"screen_name":"philgyfordtest",
|
||||
"name":"Phil Gyford Test"
|
||||
},
|
||||
"geo":null,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"possibly_sensitive":false,
|
||||
"possibly_sensitive_appealable":false,
|
||||
"lang":"en",
|
||||
"created_at":"Tue Oct 10 11:00:10 +0000 2017",
|
||||
"quoted_status_id_str":"917699069916729344",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"place":null
|
||||
}
|
||||
62
tests/tweets/reply.json
Normal file
62
tests/tweets/reply.json
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"display_text_range":[
|
||||
12,
|
||||
114
|
||||
],
|
||||
"in_reply_to_status_id_str":"742374355531923456",
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"geo":null,
|
||||
"full_text":"@philgyford Here\u2019s a test tweet that goes on as much as possible and includes an image. Hi to my fans in testland! https://t.co/tzhyk2QWSr",
|
||||
"extended_entities":{
|
||||
"media":[
|
||||
|
||||
]
|
||||
},
|
||||
"id_str":"300",
|
||||
"in_reply_to_status_id":742374355531923456,
|
||||
"id":300,
|
||||
"in_reply_to_screen_name":"philgyford",
|
||||
"retweet_count":0,
|
||||
"user":{
|
||||
|
||||
},
|
||||
"created_at":"Mon Jun 13 15:48:06 +0000 2016",
|
||||
"lang":"en",
|
||||
"favorite_count":0,
|
||||
"coordinates":null,
|
||||
"place":null,
|
||||
"contributors":null,
|
||||
"in_reply_to_user_id":12552,
|
||||
"in_reply_to_user_id_str":"12552",
|
||||
"retweeted":false,
|
||||
"favorited":false,
|
||||
"truncated":false,
|
||||
"entities":{
|
||||
"user_mentions":[
|
||||
{
|
||||
"id_str":"12552",
|
||||
"id":12552,
|
||||
"screen_name":"philgyford",
|
||||
"name":"Phil Gyford",
|
||||
"indices":[
|
||||
0,
|
||||
11
|
||||
]
|
||||
}
|
||||
],
|
||||
"media":[
|
||||
|
||||
],
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"is_quote_status":false,
|
||||
"possibly_sensitive":false
|
||||
}
|
||||
91
tests/tweets/retweet.json
Normal file
91
tests/tweets/retweet.json
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
"coordinates":null,
|
||||
"source":"web",
|
||||
"in_reply_to_user_id_str":null,
|
||||
"truncated":false,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorite_count":0,
|
||||
"user":{
|
||||
"name":"Phil Gyford Test",
|
||||
"screen_name":"philgyfordtest"
|
||||
},
|
||||
"favorited":false,
|
||||
"retweeted_status":{
|
||||
"coordinates":null,
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
|
||||
"in_reply_to_user_id_str":null,
|
||||
"truncated":false,
|
||||
"in_reply_to_user_id":null,
|
||||
"favorite_count":21,
|
||||
"user":{
|
||||
"name":"Samuel Pepys",
|
||||
"screen_name":"samuelpepys"
|
||||
},
|
||||
"favorited":false,
|
||||
"id":917459832885653506,
|
||||
"contributors":null,
|
||||
"in_reply_to_screen_name":null,
|
||||
"geo":null,
|
||||
"in_reply_to_status_id_str":null,
|
||||
"id_str":"917459832885653506",
|
||||
"entities":{
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"in_reply_to_status_id":null,
|
||||
"text":"My aunt and uncle in a very ill humour one with another, but I made shift with much ado to keep them from scolding.",
|
||||
"retweet_count":3,
|
||||
"place":null,
|
||||
"lang":"en",
|
||||
"created_at":"Mon Oct 09 18:40:44 +0000 2017",
|
||||
"is_quote_status":false,
|
||||
"retweeted":false
|
||||
},
|
||||
"id":917712989649801216,
|
||||
"contributors":null,
|
||||
"in_reply_to_screen_name":null,
|
||||
"geo":null,
|
||||
"in_reply_to_status_id_str":null,
|
||||
"id_str":"917712989649801216",
|
||||
"entities":{
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
{
|
||||
"id_str":"14475268",
|
||||
"indices":[
|
||||
3,
|
||||
15
|
||||
],
|
||||
"name":"Samuel Pepys",
|
||||
"id":14475268,
|
||||
"screen_name":"samuelpepys"
|
||||
}
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"in_reply_to_status_id":null,
|
||||
"text":"RT @samuelpepys: My aunt and uncle in a very ill humour one with another, but I made shift with much ado to keep them from scolding.",
|
||||
"retweet_count":3,
|
||||
"place":null,
|
||||
"lang":"en",
|
||||
"created_at":"Tue Oct 10 11:26:41 +0000 2017",
|
||||
"is_quote_status":false,
|
||||
"retweeted":false
|
||||
}
|
||||
61
tests/tweets/symbols.json
Normal file
61
tests/tweets/symbols.json
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"text":"Some symbols: $AAPL and $PEP and $ANOTHER and $A.",
|
||||
"contributors":null,
|
||||
"geo":null,
|
||||
"favorited":true,
|
||||
"in_reply_to_user_id_str":null,
|
||||
"user":{
|
||||
"screen_name":"philgyfordtest",
|
||||
"name":"Phil Gyford Test"
|
||||
},
|
||||
"in_reply_to_user_id":null,
|
||||
"retweeted":false,
|
||||
"coordinates":null,
|
||||
"place":null,
|
||||
"in_reply_to_status_id":null,
|
||||
"lang":"en",
|
||||
"in_reply_to_status_id_str":null,
|
||||
"truncated":false,
|
||||
"retweet_count":0,
|
||||
"is_quote_status":false,
|
||||
"id":662694880657989632,
|
||||
"id_str":"662694880657989632",
|
||||
"in_reply_to_screen_name":null,
|
||||
"favorite_count":1,
|
||||
"entities":{
|
||||
"hashtags":[
|
||||
|
||||
],
|
||||
"user_mentions":[
|
||||
|
||||
],
|
||||
"symbols":[
|
||||
{
|
||||
"indices":[
|
||||
14,
|
||||
19
|
||||
],
|
||||
"text":"AAPL"
|
||||
},
|
||||
{
|
||||
"indices":[
|
||||
24,
|
||||
28
|
||||
],
|
||||
"text":"PEP"
|
||||
},
|
||||
{
|
||||
"indices":[
|
||||
46,
|
||||
48
|
||||
],
|
||||
"text":"A"
|
||||
}
|
||||
],
|
||||
"urls":[
|
||||
|
||||
]
|
||||
},
|
||||
"created_at":"Fri Nov 06 18:15:46 +0000 2015",
|
||||
"source":"<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue