purdie 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -6
  3. data/README.md +38 -22
  4. data/_config/defaults.yaml +10 -0
  5. data/_data/flickr.yaml +4 -0
  6. data/_data/soundcloud.yaml +7 -0
  7. data/features/flickr-album.feature +23 -0
  8. data/features/flickr-different-size.feature +28 -0
  9. data/features/soundcloud-set.feature +41 -0
  10. data/features/soundcloud.feature +0 -1
  11. data/features/support/fixtures/vcr/A_URL_we_don_t_understand/Handle_a_URL_we_don_t_recognise.yml +16 -16
  12. data/features/support/fixtures/vcr/First_contact_with_the_Real_World/Generate_YAML_for_the_Raw_Funk_Maharishi.yml +191 -276
  13. data/features/support/fixtures/vcr/Flickr/Generate_Flickr_YAML.yml +16 -16
  14. data/features/support/fixtures/vcr/Flickr_album/Generate_Flickr_YAML_for_an_album.yml +1035 -0
  15. data/features/support/fixtures/vcr/Handle_comments/Handle_comments_in_a_source_file.yml +75 -206
  16. data/features/support/fixtures/vcr/Purdie/Generate_several_YAML.yml +177 -213
  17. data/features/support/fixtures/vcr/Select_a_file_to_process/Choose_file_to_process.yml +56 -188
  18. data/features/support/fixtures/vcr/Set_Flickr_picturesize/Generate_Flickr_YAML.yml +125 -0
  19. data/features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML.yml +56 -188
  20. data/features/support/fixtures/vcr/Soundcloud/Generate_SoundCloud_YAML_for_multiple_tracks.yml +140 -181
  21. data/features/support/fixtures/vcr/Soundcloud_set/Generate_YAML_for_a_SoundCloud_set.yml +436 -0
  22. data/features/support/fixtures/vcr/Vimeo/Generate_Vimeo_YAML.yml +23 -11
  23. data/features/support/fixtures/vcr/YouTube/Generate_YouTube_YAML.yml +970 -0
  24. data/features/support/vcr.rb +7 -5
  25. data/features/youtube.feature +20 -0
  26. data/lib/purdie/bernard.rb +35 -17
  27. data/lib/purdie/cli.rb +1 -1
  28. data/lib/purdie/helpers.rb +24 -0
  29. data/lib/purdie/ingester.rb +25 -10
  30. data/lib/purdie/services/flickr.rb +48 -5
  31. data/lib/purdie/services/soundcloud.rb +13 -21
  32. data/lib/purdie/services/vimeo.rb +4 -3
  33. data/lib/purdie/services/youtube.rb +64 -0
  34. data/lib/purdie/source_list.rb +46 -0
  35. data/lib/purdie/version.rb +1 -1
  36. data/lib/purdie.rb +4 -21
  37. data/list +1 -0
  38. data/purdie.gemspec +3 -1
  39. data/spec/helpers_spec.rb +31 -0
  40. data/spec/purdie_spec.rb +0 -24
  41. data/spec/services/flickr_spec.rb +33 -1
  42. data/spec/services/soundcloud_spec.rb +10 -8
  43. data/spec/services/youtube_spec.rb +27 -0
  44. data/spec/source_list_spec.rb +64 -0
  45. data/spec/support/fixtures/soundcloud.sounds +4 -0
  46. data/spec/support/fixtures/with-comments.source +3 -0
  47. data/spec/support/vcr_setup.rb +3 -1
  48. data/spec/vcr/Purdie_Services_Flickr/distills_data_for_a_regular_photo.yml +15 -15
  49. data/spec/vcr/Purdie_Services_Flickr/falls_back_to_the_default_photographer_name.yml +16 -16
  50. data/spec/vcr/Purdie_Services_Flickr/ingests_data_for_a_photo_without_a_specific_photographer_tag.yml +16 -16
  51. data/spec/vcr/Purdie_Services_Flickr/resolve_a_set/resolves_a_set_from_a_url.yml +518 -0
  52. data/spec/vcr/Purdie_Services_SoundCloud/connects_to_SoundCloud.yml +62 -67
  53. data/spec/vcr/Purdie_Services_SoundCloud/distills_the_data.yml +53 -183
  54. data/spec/vcr/Purdie_Services_SoundCloud/extracts_a_track.yml +50 -194
  55. data/spec/vcr/Purdie_Services_SoundCloud/ingests_a_track.yml +48 -186
  56. data/spec/vcr/Purdie_Services_SoundCloud/resolve_a_set/resolves_a_set_from_a_url.yml +103 -0
  57. data/spec/vcr/Purdie_Services_Vimeo/gets_a_video.yml +23 -11
  58. data/spec/vcr/Purdie_Services_Vimeo/ingests_a_video.yml +23 -11
  59. data/spec/vcr/Purdie_Services_YouTube/gets_a_video.yml +970 -0
  60. data/spec/vcr/Purdie_Services_YouTube/ingests_a_video.yml +970 -0
  61. data/spec/vcr/Purdie_SourceList/resolve_sets/constructs_a_list_from_a_set_URL.yml +518 -0
  62. data/spec/vcr/Purdie_SourceList/resolve_sets/resolves_a_Flickr_set.yml +518 -0
  63. data/spec/vcr/Purdie_SourceList/resolve_sets/resolves_a_SoundCloud_set.yml +103 -0
  64. data/spec/vcr/Purdie_SourceList/resolves_a_Flickr_set.yml +518 -0
  65. data/wtf.log +1 -0
  66. metadata +81 -14
  67. data/features/support/fixtures/vcr/Handle_no__sources_directory/Handle_no__sources_directory.yml +0 -346
  68. data/spec/vcr/Purdie_Services_SoundCloud/deals_with_a_troublesome_bawbag.yml +0 -230
  69. data/spec/vcr/Purdie_Services_SoundCloud/refines_the_data.yml +0 -230
  70. data/spec/vcr/Purdie_Services_Vimeo/distills_a_video.yml +0 -41
  71. data/spec/vcr/Purdie_Services_Vimeo/refines_a_video.yml +0 -41
@@ -0,0 +1,518 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.flickr.com/services/rest/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: photoset_id=72157649827363868&method=flickr.photosets.getPhotos&format=json&nojsoncallback=1
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - FlickRaw/0.9.8
16
+ Authorization:
17
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
18
+ oauth_nonce="whHZyZ8ylV8%2FC9JnMZHVKQpd6j5UH%2BHHTzYMIjnW5QU%3D", oauth_signature="<FLICKR_SECRET>%26",
19
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015278", oauth_token="",
20
+ oauth_version="1.0"
21
+ Content-Type:
22
+ - application/x-www-form-urlencoded
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Date:
29
+ - Tue, 10 Mar 2015 19:21:18 GMT
30
+ Content-Type:
31
+ - application/json
32
+ Content-Length:
33
+ - '476'
34
+ P3p:
35
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
36
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
37
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
38
+ Cache-Control:
39
+ - private
40
+ X-Served-By:
41
+ - www333.flickr.bf1.yahoo.com
42
+ Vary:
43
+ - Accept-Encoding
44
+ Age:
45
+ - '0'
46
+ Via:
47
+ - http/1.1 fts112.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
+ http/1.1 r04.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
49
+ Server:
50
+ - ATS
51
+ Connection:
52
+ - keep-alive
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"photoset":{"id":"72157649827363868","primary":"16252009191","owner":"73135567@N00","ownername":"pikesley","photo":[{"id":"16252009191","secret":"ea2d06e6bb","server":"7506","farm":8,"title":"First
56
+ planting of the year","isprimary":"1","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16308144622","secret":"4822b81b0e","server":"7480","farm":8,"title":"Seedlings","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16202827068","secret":"ee50e0cb1c","server":"7357","farm":8,"title":"Tomato
57
+ farm","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16388723891","secret":"10a4a8e745","server":"7382","farm":8,"title":"Cucamelon","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16308619689","secret":"41143c6dbb","server":"7327","farm":8,"title":"Potato
58
+ kit","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16367228619","secret":"3af2aba147","server":"8660","farm":9,"title":"Embothrium
59
+ seedling","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16752302412","secret":"d80b27c8dc","server":"8707","farm":9,"title":"Growhouse","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0},{"id":"16752239531","secret":"2bcaa35495","server":"7651","farm":8,"title":"Patio
60
+ pots","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0}],"page":1,"per_page":500,"perpage":500,"pages":1,"total":"8","title":"Garden
61
+ 2015"},"stat":"ok"}'
62
+ http_version:
63
+ recorded_at: Tue, 10 Mar 2015 19:21:19 GMT
64
+ - request:
65
+ method: post
66
+ uri: https://api.flickr.com/services/rest/
67
+ body:
68
+ encoding: US-ASCII
69
+ string: photo_id=16252009191&method=flickr.photos.getInfo&format=json&nojsoncallback=1
70
+ headers:
71
+ Accept-Encoding:
72
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
73
+ Accept:
74
+ - "*/*"
75
+ User-Agent:
76
+ - FlickRaw/0.9.8
77
+ Authorization:
78
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
79
+ oauth_nonce="xlLHYqmSqL1t3e8MWzSoV%2Fsev3kLDRQrk4INFw6u15E%3D", oauth_signature="<FLICKR_SECRET>%26",
80
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015279", oauth_token="",
81
+ oauth_version="1.0"
82
+ Content-Type:
83
+ - application/x-www-form-urlencoded
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: OK
88
+ headers:
89
+ Date:
90
+ - Tue, 10 Mar 2015 19:21:19 GMT
91
+ Content-Type:
92
+ - application/json
93
+ Content-Length:
94
+ - '555'
95
+ P3p:
96
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
97
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
98
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
99
+ Cache-Control:
100
+ - private
101
+ X-Served-By:
102
+ - www288.flickr.bf1.yahoo.com
103
+ Vary:
104
+ - Accept-Encoding
105
+ Age:
106
+ - '0'
107
+ Via:
108
+ - http/1.1 fts118.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
109
+ http/1.1 r20.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
110
+ Server:
111
+ - ATS
112
+ Connection:
113
+ - keep-alive
114
+ body:
115
+ encoding: ASCII-8BIT
116
+ string: '{"photo":{"id":"16252009191","secret":"ea2d06e6bb","server":"7506","farm":8,"dateuploaded":"1420982656","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"dd0b6e4274","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"First
117
+ planting of the year"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1420982656","taken":"2015-01-11
118
+ 14:22:47","takengranularity":"0","takenunknown":"0","lastupdate":"1420982715"},"views":"166","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16252009191\/"}]},"media":"photo"},"stat":"ok"}'
119
+ http_version:
120
+ recorded_at: Tue, 10 Mar 2015 19:21:19 GMT
121
+ - request:
122
+ method: post
123
+ uri: https://api.flickr.com/services/rest/
124
+ body:
125
+ encoding: US-ASCII
126
+ string: photo_id=16308144622&method=flickr.photos.getInfo&format=json&nojsoncallback=1
127
+ headers:
128
+ Accept-Encoding:
129
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
130
+ Accept:
131
+ - "*/*"
132
+ User-Agent:
133
+ - FlickRaw/0.9.8
134
+ Authorization:
135
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
136
+ oauth_nonce="B9feZGWcE0SBfmCWKc48tyo9fkbH%2Bp%2F%2FF%2BYPpdK8FMk%3D", oauth_signature="<FLICKR_SECRET>%26",
137
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015279", oauth_token="",
138
+ oauth_version="1.0"
139
+ Content-Type:
140
+ - application/x-www-form-urlencoded
141
+ response:
142
+ status:
143
+ code: 200
144
+ message: OK
145
+ headers:
146
+ Date:
147
+ - Tue, 10 Mar 2015 19:21:19 GMT
148
+ Content-Type:
149
+ - application/json
150
+ Content-Length:
151
+ - '544'
152
+ P3p:
153
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
154
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
155
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
156
+ Cache-Control:
157
+ - private
158
+ X-Served-By:
159
+ - www220.flickr.bf1.yahoo.com
160
+ Vary:
161
+ - Accept-Encoding
162
+ Age:
163
+ - '0'
164
+ Via:
165
+ - http/1.1 fts116.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
166
+ http/1.1 r20.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
167
+ Server:
168
+ - ATS
169
+ Connection:
170
+ - keep-alive
171
+ body:
172
+ encoding: ASCII-8BIT
173
+ string: '{"photo":{"id":"16308144622","secret":"4822b81b0e","server":"7480","farm":8,"dateuploaded":"1421591962","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"fafedaf4a8","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Seedlings"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1421591962","taken":"2015-01-18
174
+ 15:31:34","takengranularity":"0","takenunknown":"0","lastupdate":"1421592677"},"views":"175","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16308144622\/"}]},"media":"photo"},"stat":"ok"}'
175
+ http_version:
176
+ recorded_at: Tue, 10 Mar 2015 19:21:19 GMT
177
+ - request:
178
+ method: post
179
+ uri: https://api.flickr.com/services/rest/
180
+ body:
181
+ encoding: US-ASCII
182
+ string: photo_id=16202827068&method=flickr.photos.getInfo&format=json&nojsoncallback=1
183
+ headers:
184
+ Accept-Encoding:
185
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
186
+ Accept:
187
+ - "*/*"
188
+ User-Agent:
189
+ - FlickRaw/0.9.8
190
+ Authorization:
191
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
192
+ oauth_nonce="iP8RSx%2BnFAmkayFoM%2B%2Byt5D56bS4ScbQ9jREBj1PqDc%3D", oauth_signature="<FLICKR_SECRET>%26",
193
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015279", oauth_token="",
194
+ oauth_version="1.0"
195
+ Content-Type:
196
+ - application/x-www-form-urlencoded
197
+ response:
198
+ status:
199
+ code: 200
200
+ message: OK
201
+ headers:
202
+ Date:
203
+ - Tue, 10 Mar 2015 19:21:19 GMT
204
+ Content-Type:
205
+ - application/json
206
+ Content-Length:
207
+ - '542'
208
+ P3p:
209
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
210
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
211
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
212
+ Cache-Control:
213
+ - private
214
+ X-Served-By:
215
+ - www253.flickr.bf1.yahoo.com
216
+ Vary:
217
+ - Accept-Encoding
218
+ Age:
219
+ - '2'
220
+ Via:
221
+ - http/1.1 fts114.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
222
+ http/1.1 r22.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
223
+ Server:
224
+ - ATS
225
+ Connection:
226
+ - keep-alive
227
+ body:
228
+ encoding: ASCII-8BIT
229
+ string: '{"photo":{"id":"16202827068","secret":"ee50e0cb1c","server":"7357","farm":8,"dateuploaded":"1422476532","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"06e6a96521","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Tomato
230
+ farm"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1422476532","taken":"2015-01-28
231
+ 21:19:32","takengranularity":"0","takenunknown":"0","lastupdate":"1422476584"},"views":"103","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16202827068\/"}]},"media":"photo"},"stat":"ok"}'
232
+ http_version:
233
+ recorded_at: Tue, 10 Mar 2015 19:21:20 GMT
234
+ - request:
235
+ method: post
236
+ uri: https://api.flickr.com/services/rest/
237
+ body:
238
+ encoding: US-ASCII
239
+ string: photo_id=16388723891&method=flickr.photos.getInfo&format=json&nojsoncallback=1
240
+ headers:
241
+ Accept-Encoding:
242
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
243
+ Accept:
244
+ - "*/*"
245
+ User-Agent:
246
+ - FlickRaw/0.9.8
247
+ Authorization:
248
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
249
+ oauth_nonce="pTvzNLD8GNU2axNRohrswTNzNiKa%2F9vEoqqTPrL5ORQ%3D", oauth_signature="<FLICKR_SECRET>%26",
250
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015280", oauth_token="",
251
+ oauth_version="1.0"
252
+ Content-Type:
253
+ - application/x-www-form-urlencoded
254
+ response:
255
+ status:
256
+ code: 200
257
+ message: OK
258
+ headers:
259
+ Date:
260
+ - Tue, 10 Mar 2015 19:21:20 GMT
261
+ Content-Type:
262
+ - application/json
263
+ Content-Length:
264
+ - '543'
265
+ P3p:
266
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
267
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
268
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
269
+ Cache-Control:
270
+ - private
271
+ X-Served-By:
272
+ - www265.flickr.bf1.yahoo.com
273
+ Vary:
274
+ - Accept-Encoding
275
+ Age:
276
+ - '0'
277
+ Via:
278
+ - http/1.1 fts115.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
279
+ http/1.1 r22.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
280
+ Server:
281
+ - ATS
282
+ Connection:
283
+ - keep-alive
284
+ body:
285
+ encoding: ASCII-8BIT
286
+ string: '{"photo":{"id":"16388723891","secret":"10a4a8e745","server":"7382","farm":8,"dateuploaded":"1422476602","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"203886b5a3","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Cucamelon"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1422476602","taken":"2015-01-28
287
+ 21:19:45","takengranularity":"0","takenunknown":"0","lastupdate":"1422477672"},"views":"116","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16388723891\/"}]},"media":"photo"},"stat":"ok"}'
288
+ http_version:
289
+ recorded_at: Tue, 10 Mar 2015 19:21:20 GMT
290
+ - request:
291
+ method: post
292
+ uri: https://api.flickr.com/services/rest/
293
+ body:
294
+ encoding: US-ASCII
295
+ string: photo_id=16308619689&method=flickr.photos.getInfo&format=json&nojsoncallback=1
296
+ headers:
297
+ Accept-Encoding:
298
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
299
+ Accept:
300
+ - "*/*"
301
+ User-Agent:
302
+ - FlickRaw/0.9.8
303
+ Authorization:
304
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
305
+ oauth_nonce="kg1BksqCaDvHdQSBqn%2FqMRGqWU%2BBasSjsW3L9OMqV0o%3D", oauth_signature="<FLICKR_SECRET>%26",
306
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015280", oauth_token="",
307
+ oauth_version="1.0"
308
+ Content-Type:
309
+ - application/x-www-form-urlencoded
310
+ response:
311
+ status:
312
+ code: 200
313
+ message: OK
314
+ headers:
315
+ Date:
316
+ - Tue, 10 Mar 2015 19:21:20 GMT
317
+ Content-Type:
318
+ - application/json
319
+ Content-Length:
320
+ - '545'
321
+ P3p:
322
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
323
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
324
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
325
+ Cache-Control:
326
+ - private
327
+ X-Served-By:
328
+ - www52.flickr.bf1.yahoo.com
329
+ Vary:
330
+ - Accept-Encoding
331
+ Age:
332
+ - '0'
333
+ Via:
334
+ - http/1.1 fts109.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
335
+ http/1.1 r22.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
336
+ Server:
337
+ - ATS
338
+ Connection:
339
+ - keep-alive
340
+ body:
341
+ encoding: ASCII-8BIT
342
+ string: '{"photo":{"id":"16308619689","secret":"41143c6dbb","server":"7327","farm":8,"dateuploaded":"1423599466","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"dc11437dda","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Potato
343
+ kit"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1423599466","taken":"2015-02-10
344
+ 21:14:58","takengranularity":"0","takenunknown":"0","lastupdate":"1423601463"},"views":"75","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16308619689\/"}]},"media":"photo"},"stat":"ok"}'
345
+ http_version:
346
+ recorded_at: Tue, 10 Mar 2015 19:21:20 GMT
347
+ - request:
348
+ method: post
349
+ uri: https://api.flickr.com/services/rest/
350
+ body:
351
+ encoding: US-ASCII
352
+ string: photo_id=16367228619&method=flickr.photos.getInfo&format=json&nojsoncallback=1
353
+ headers:
354
+ Accept-Encoding:
355
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
356
+ Accept:
357
+ - "*/*"
358
+ User-Agent:
359
+ - FlickRaw/0.9.8
360
+ Authorization:
361
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
362
+ oauth_nonce="ZC0ynSfAfmvagVhZZAVdmRC1H7ADu1f1dGli4cjb%2BsA%3D", oauth_signature="<FLICKR_SECRET>%26",
363
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015280", oauth_token="",
364
+ oauth_version="1.0"
365
+ Content-Type:
366
+ - application/x-www-form-urlencoded
367
+ response:
368
+ status:
369
+ code: 200
370
+ message: OK
371
+ headers:
372
+ Date:
373
+ - Tue, 10 Mar 2015 19:21:20 GMT
374
+ Content-Type:
375
+ - application/json
376
+ Content-Length:
377
+ - '550'
378
+ P3p:
379
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
380
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
381
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
382
+ Cache-Control:
383
+ - private
384
+ X-Served-By:
385
+ - www50.flickr.bf1.yahoo.com
386
+ Vary:
387
+ - Accept-Encoding
388
+ Age:
389
+ - '0'
390
+ Via:
391
+ - http/1.1 fts107.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
392
+ http/1.1 r12.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
393
+ Server:
394
+ - ATS
395
+ Connection:
396
+ - keep-alive
397
+ body:
398
+ encoding: ASCII-8BIT
399
+ string: '{"photo":{"id":"16367228619","secret":"3af2aba147","server":"8660","farm":9,"dateuploaded":"1424124245","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"7145f68aed","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Embothrium
400
+ seedling"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1424124245","taken":"2015-02-16
401
+ 23:03:06","takengranularity":"0","takenunknown":"0","lastupdate":"1424125294"},"views":"55","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16367228619\/"}]},"media":"photo"},"stat":"ok"}'
402
+ http_version:
403
+ recorded_at: Tue, 10 Mar 2015 19:21:21 GMT
404
+ - request:
405
+ method: post
406
+ uri: https://api.flickr.com/services/rest/
407
+ body:
408
+ encoding: US-ASCII
409
+ string: photo_id=16752302412&method=flickr.photos.getInfo&format=json&nojsoncallback=1
410
+ headers:
411
+ Accept-Encoding:
412
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
413
+ Accept:
414
+ - "*/*"
415
+ User-Agent:
416
+ - FlickRaw/0.9.8
417
+ Authorization:
418
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
419
+ oauth_nonce="KeAgyelsDmJpWG50jEySqLJqX1FG2e9dYgxRTUQQnxI%3D", oauth_signature="<FLICKR_SECRET>%26",
420
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015281", oauth_token="",
421
+ oauth_version="1.0"
422
+ Content-Type:
423
+ - application/x-www-form-urlencoded
424
+ response:
425
+ status:
426
+ code: 200
427
+ message: OK
428
+ headers:
429
+ Date:
430
+ - Tue, 10 Mar 2015 19:21:21 GMT
431
+ Content-Type:
432
+ - application/json
433
+ Content-Length:
434
+ - '545'
435
+ P3p:
436
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
437
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
438
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
439
+ Cache-Control:
440
+ - private
441
+ X-Served-By:
442
+ - www227.flickr.bf1.yahoo.com
443
+ Vary:
444
+ - Accept-Encoding
445
+ Age:
446
+ - '0'
447
+ Via:
448
+ - http/1.1 fts105.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
449
+ http/1.1 r17.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
450
+ Server:
451
+ - ATS
452
+ Connection:
453
+ - keep-alive
454
+ body:
455
+ encoding: ASCII-8BIT
456
+ string: '{"photo":{"id":"16752302412","secret":"d80b27c8dc","server":"8707","farm":9,"dateuploaded":"1425824636","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"b2e8dd6c5c","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Growhouse"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1425824636","taken":"2015-03-08
457
+ 15:19:53","takengranularity":"0","takenunknown":"0","lastupdate":"1425825014"},"views":"32","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16752302412\/"}]},"media":"photo"},"stat":"ok"}'
458
+ http_version:
459
+ recorded_at: Tue, 10 Mar 2015 19:21:21 GMT
460
+ - request:
461
+ method: post
462
+ uri: https://api.flickr.com/services/rest/
463
+ body:
464
+ encoding: US-ASCII
465
+ string: photo_id=16752239531&method=flickr.photos.getInfo&format=json&nojsoncallback=1
466
+ headers:
467
+ Accept-Encoding:
468
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
469
+ Accept:
470
+ - "*/*"
471
+ User-Agent:
472
+ - FlickRaw/0.9.8
473
+ Authorization:
474
+ - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
475
+ oauth_nonce="mip%2F3SRx8tF07fC3CcGjTO7EwdJ7Fbx7V6FksRODy%2FE%3D", oauth_signature="<FLICKR_SECRET>%26",
476
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1426015281", oauth_token="",
477
+ oauth_version="1.0"
478
+ Content-Type:
479
+ - application/x-www-form-urlencoded
480
+ response:
481
+ status:
482
+ code: 200
483
+ message: OK
484
+ headers:
485
+ Date:
486
+ - Tue, 10 Mar 2015 19:21:21 GMT
487
+ Content-Type:
488
+ - application/json
489
+ Content-Length:
490
+ - '602'
491
+ P3p:
492
+ - policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV
493
+ TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY
494
+ ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
495
+ Cache-Control:
496
+ - private
497
+ X-Served-By:
498
+ - www271.flickr.bf1.yahoo.com
499
+ Vary:
500
+ - Accept-Encoding
501
+ Age:
502
+ - '0'
503
+ Via:
504
+ - http/1.1 fts123.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
505
+ http/1.1 r06.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
506
+ Server:
507
+ - ATS
508
+ Connection:
509
+ - keep-alive
510
+ body:
511
+ encoding: ASCII-8BIT
512
+ string: '{"photo":{"id":"16752239531","secret":"2bcaa35495","server":"7651","farm":8,"dateuploaded":"1425824917","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"6f79696344","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Patio
513
+ pots"},"description":{"_content":"Chives, tarragon, sage, thyme, rosemary,
514
+ spinachy things, chocolate mint, potato bags\n"},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1425824917","taken":"2015-03-08
515
+ 15:20:22","takengranularity":"0","takenunknown":"0","lastupdate":"1425825005"},"views":"31","editability":{"cancomment":0,"canaddmeta":0},"publiceditability":{"cancomment":1,"canaddmeta":0},"usage":{"candownload":1,"canblog":0,"canprint":0,"canshare":1},"comments":{"_content":"0"},"notes":{"note":[]},"people":{"haspeople":0},"tags":{"tag":[]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/pikesley\/16752239531\/"}]},"media":"photo"},"stat":"ok"}'
516
+ http_version:
517
+ recorded_at: Tue, 10 Mar 2015 19:21:21 GMT
518
+ recorded_with: VCR 2.9.3