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
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue