purdie 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb654a275f2bdd4ec1639b56b9da200c275b23b8
4
- data.tar.gz: 87a9eac82f83c0d9040881a681d47195b0dc7edc
3
+ metadata.gz: 6314b14d1a49792e8ddba81c1b032a9808acf82b
4
+ data.tar.gz: c0148ec17e50269e87b1c50d5d3d07b2d671dfa4
5
5
  SHA512:
6
- metadata.gz: 8b3f745cf82ad61dbc61c0479f0d99e1a32fa39d10b8e8259b4faff2191b12d2baa1d2f02f663c23122a5da9e96d6a15be2b36150717bdd4c770d16f7651d1f9
7
- data.tar.gz: 82050344fe0a0138aa776ca5ce2e82b7c194eab50532af8330b7de190b9c8ad5698884cedf976527ac41594a76695437f856fcb6bd2d1b2af59817693072361c
6
+ metadata.gz: 033cdf84d4c8c35bdb4fad4c8ce8cb9835b7ad8b0a0abf3c5d1474913b82d4a00aa982d54ef6d386d7835dd7154f835c5d117a4429bc8d6bca90595f2da53fea
7
+ data.tar.gz: 9b40ec18044f0e25e7937381844b306ea2075972059dc74e92de97e880377eacc7fe96a33ffc52fbb09ecfedc899622021aa08b10c094ac03157eaa0a8a16c8f
data/.gitignore CHANGED
@@ -13,3 +13,4 @@
13
13
  *.a
14
14
  mkmf.log
15
15
  .env
16
+ cruft.rb
data/cruft.rb CHANGED
@@ -1,9 +1,10 @@
1
+ require 'active_support/inflector'
2
+
1
3
  class Thing
2
4
  def hello
3
5
  puts "I am a #{self.class.name}"
4
6
  end
5
7
  end
6
8
 
7
- Thing.new.hello
8
-
9
- t = "Thing"
9
+ t = "Thing".constantize.new
10
+ t.hello
@@ -15,51 +15,23 @@ module Purdie
15
15
  end
16
16
 
17
17
  def fetch
18
- s = Purdie::Services::SoundCloud.new @config
19
- soundclouds = []
20
-
21
- f = Purdie::Services::Flickr.new @config
22
- flickrs = []
23
-
24
- v = Purdie::Services::Vimeo.new @config
25
- vimeos = []
18
+ services = {}
19
+ @config['services'].each do |s|
20
+ services[s[0].downcase.to_sym] = "Purdie::Services::#{s[0]}".constantize.new(@config)
21
+ end
26
22
 
27
23
  @sources.each do |source|
28
- lines = File.readlines source
29
- lines.each do |line|
30
- print "Processing #{line.strip}... "
31
- case line
32
- when /soundcloud/
33
- soundclouds.push s.distill line
34
-
35
- when /flickr/
36
- flickrs.push f.distill line
24
+ File.readlines(source).each do |line|
25
+ next if line[0] == '#'
37
26
 
38
- when /vimeo/
39
- vimeos.push v.distill line
40
- end
27
+ print "Processing #{line.strip}... "
28
+ services[services.keys.select{ |s| line =~ /#{s.to_s}/ }[0]].ingest line
41
29
  puts 'done'
42
30
  end
43
31
  end
44
32
 
45
- FileUtils.mkdir_p @config['output-dir']
46
-
47
- if soundclouds[0]
48
- sf = File.open "#{@config['output-dir']}/#{@config['services']['SoundCloud']['output-file']}", 'w'
49
- sf.write soundclouds.to_yaml
50
- sf.close
51
- end
52
-
53
- if flickrs[0]
54
- ff = File.open "#{@config['output-dir']}/#{@config['services']['Flickr']['output-file']}", 'w'
55
- ff.write flickrs.to_yaml
56
- ff.close
57
- end
58
-
59
- if vimeos[0]
60
- vf = File.open "#{@config['output-dir']}/#{@config['services']['Vimeo']['output-file']}", 'w'
61
- vf.write vimeos.to_yaml
62
- vf.close
33
+ services.each_key do |k|
34
+ services[k].write
63
35
  end
64
36
  end
65
37
  end
@@ -0,0 +1,29 @@
1
+ module Purdie
2
+ module Ingester
3
+ def ingest url
4
+ @items.push distill url
5
+ end
6
+
7
+ def [] key
8
+ @items[key]
9
+ end
10
+
11
+ def has_items?
12
+ @items.count > 0
13
+ end
14
+
15
+ def to_yaml
16
+ @items.to_yaml
17
+ end
18
+
19
+ def write
20
+ if self.has_items?
21
+ FileUtils.mkdir_p @config['output-dir']
22
+
23
+ File.open "#{@config['output-dir']}/#{@config['services'][self.class.name.split('::')[-1]]['output-file']}", 'w' do |f|
24
+ f.write self.to_yaml
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,24 +1,26 @@
1
1
  require 'purdie'
2
- require 'flickraw-cached'
3
2
 
4
3
  Dotenv.load
5
4
 
6
5
  module Purdie
7
6
  module Services
8
7
  class Flickr
8
+ include Purdie::Ingester
9
+
9
10
  def initialize config
10
11
  @config = config
12
+ @items = []
11
13
 
12
14
  FlickRaw.api_key = ENV['FLICKR_API_KEY']
13
15
  FlickRaw.shared_secret = ENV['FLICKR_SECRET']
14
16
  end
15
17
 
16
- def get_photo url
17
- url.strip!
18
- url = url[0..-2] if url[-1] == '/'
19
- id = url.split('/')[-1].to_i
18
+ def licenses
19
+ @licenses ||= flickr.photos.licenses.getInfo
20
+ end
20
21
 
21
- flickr.photos.getInfo(photo_id: id)
22
+ def get_photo url
23
+ flickr.photos.getInfo photo_id: Purdie.get_id(url)
22
24
  end
23
25
 
24
26
  def distill url
@@ -31,8 +33,7 @@ module Purdie
31
33
  results['photo_page'] = photo['urls'][0]['_content']
32
34
  results['photo_url'] = FlickRaw.url_m(photo)
33
35
 
34
- @licenses = flickr.photos.licenses.getInfo
35
- license = @licenses.select {|l| l['id'] == photo['license']}[0]
36
+ license = licenses.select {|l| l['id'] == photo['license']}[0]
36
37
  results['license'] = license['name'].split(' License')[0]
37
38
  results['license_url'] = license['url']
38
39
 
@@ -5,13 +5,16 @@ Dotenv.load
5
5
  module Purdie
6
6
  module Services
7
7
  class SoundCloud
8
+ include Purdie::Ingester
9
+
8
10
  def initialize config
9
11
  @config = config
12
+ @items = []
10
13
  end
11
14
 
12
15
  def all_tracks
13
16
  @all_tracks ||= begin
14
- url = "#{@config['services']['SoundCloud']['host']}/users/#{ENV['SOUNDCLOUD_USER_ID']}/tracks?client_id=#{ENV['SOUNDCLOUD_CLIENT_ID']}"
17
+ url = "#{@config['services'][self.class.name.split('::')[-1]]['host']}/users/#{ENV['SOUNDCLOUD_USER_ID']}/tracks?client_id=#{ENV['SOUNDCLOUD_CLIENT_ID']}"
15
18
  response = HTTParty.get url
16
19
  JSON.parse response.body
17
20
  end
@@ -5,16 +5,17 @@ Dotenv.load
5
5
  module Purdie
6
6
  module Services
7
7
  class Vimeo
8
+ include Purdie::Ingester
9
+
8
10
  def initialize config
9
11
  @config = config
12
+ @items = []
10
13
  end
11
14
 
12
15
  def get_video url
13
- url.strip!
14
- url = url[0..-2] if url[-1] == '/'
15
- @id = url.split('/')[-1].to_i
16
+ @id = Purdie.get_id url
16
17
 
17
- target = "#{@config['services']['Vimeo']['host']}/videos/#{@id}"
18
+ target = "#{@config['services'][self.class.name.split('::')[-1]]['host']}/videos/#{@id}"
18
19
  headers = {
19
20
  'Authorization' => "bearer #{ENV['VIMEO_BEARER_TOKEN']}",
20
21
  'Accept' => 'application/json'
@@ -1,3 +1,3 @@
1
1
  module Purdie
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/purdie.rb CHANGED
@@ -3,10 +3,13 @@ require 'yaml'
3
3
  require 'deep_merge'
4
4
  require 'httparty'
5
5
  require 'dotenv'
6
+ require 'flickraw-cached'
7
+ require 'active_support/inflector'
6
8
 
7
9
  require 'purdie/version'
8
10
  require 'purdie/bernard'
9
11
  require 'purdie/config'
12
+ require 'purdie/ingester'
10
13
 
11
14
  require 'purdie/services/soundcloud'
12
15
  require 'purdie/services/flickr'
@@ -16,4 +19,15 @@ module Purdie
16
19
  def Purdie.strip_scheme url
17
20
  url.match(/http[s]?:\/\/(.*)/)[1]
18
21
  end
22
+
23
+ def Purdie.sanitise_url url
24
+ url.strip!
25
+ url = url[0..-2] if url[-1] == '/'
26
+
27
+ url
28
+ end
29
+
30
+ def Purdie.get_id url
31
+ Purdie.sanitise_url(url).split('/')[-1].to_i
32
+ end
19
33
  end
data/purdie.gemspec CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency 'deep_merge', '~> 1.0'
24
24
  spec.add_dependency 'dotenv', '~> 1.0'
25
25
  spec.add_dependency 'flickraw-cached', '= 20120701'
26
+ spec.add_dependency 'activesupport'
26
27
 
27
28
  spec.add_development_dependency 'bundler', '~> 1.7'
28
29
  spec.add_development_dependency 'rake', '~> 10.0'
data/spec/purdie_spec.rb CHANGED
@@ -11,5 +11,13 @@ module Purdie
11
11
  expect(Purdie.strip_scheme 'http://foo.bar/stuff').to eq 'foo.bar/stuff'
12
12
  expect(Purdie.strip_scheme 'https://bar.foo/stuff').to eq 'bar.foo/stuff'
13
13
  end
14
+
15
+ it 'sanitises a URL' do
16
+ expect(Purdie.sanitise_url 'http://foo.bar/stuff/').to eq 'http://foo.bar/stuff'
17
+ end
18
+
19
+ it 'gets an id' do
20
+ expect(Purdie.get_id 'http://foo.bar/654321').to eq 654321
21
+ end
14
22
  end
15
23
  end
@@ -19,8 +19,9 @@ module Purdie
19
19
  })
20
20
  end
21
21
 
22
- it 'distills data for a photo without a specific photographer tag', :vcr do
23
- expect(@f.distill 'https://www.flickr.com/photos/cluttercup/15950875724/').to eq ({
22
+ it 'ingests data for a photo without a specific photographer tag', :vcr do
23
+ @f.ingest 'https://www.flickr.com/photos/cluttercup/15950875724/'
24
+ expect(@f[0]).to eq ({
24
25
  "title"=>"Raw Funk Maharishi",
25
26
  "date"=>"2015-02-18",
26
27
  "photo_page"=>"https://www.flickr.com/photos/cluttercup/15950875724/",
@@ -28,9 +28,9 @@ module Purdie
28
28
  "license_url"=>"http://creativecommons.org/licenses/by-nc-sa/4.0/"})
29
29
  end
30
30
 
31
- it 'deals with a troublesome bawbag', :vcr do
32
- distilld = @sc.distill 'https://soundcloud.com/rawfunkmaharishi/bernard'
33
- expect(distilld).to eq({
31
+ it 'ingests a track', :vcr do
32
+ @sc.ingest 'https://soundcloud.com/rawfunkmaharishi/bernard'
33
+ expect(@sc[0]).to eq({
34
34
  "title"=>"Bernard",
35
35
  "id"=>192841052,
36
36
  "location"=>"Islington Academy",
@@ -11,8 +11,9 @@ module Purdie
11
11
  expect(@v.get_video 'https://vimeo.com/117102891').to be_a Hash
12
12
  end
13
13
 
14
- it 'distills a video', :vcr do
15
- expect(@v.distill 'https://vimeo.com/117102891').to eq({
14
+ it 'ingests a video', :vcr do
15
+ @v.ingest 'https://vimeo.com/117102891'
16
+ expect(@v[0]).to eq({
16
17
  "title"=>"Bernard",
17
18
  "id"=>117102891,
18
19
  "license"=>"Attribution-NonCommercial-ShareAlike",
@@ -15,8 +15,8 @@ http_interactions:
15
15
  - FlickRaw/0.9.8
16
16
  Authorization:
17
17
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
18
- oauth_nonce="VVYdZIrfyfpFHuMOqg2BA%2Bisgir1ml4%2B%2FFFmDO3gr14%3D", oauth_signature="<FLICKR_SECRET>%26",
19
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1425416098", oauth_token="",
18
+ oauth_nonce="V1Kr4%2B%2B5DuKytgeoW5%2FxA62qRAb75bpRdBhp3nqEuSI%3D", oauth_signature="<FLICKR_SECRET>%26",
19
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1425422845", oauth_token="",
20
20
  oauth_version="1.0"
21
21
  Content-Type:
22
22
  - application/x-www-form-urlencoded
@@ -26,7 +26,7 @@ http_interactions:
26
26
  message: OK
27
27
  headers:
28
28
  Date:
29
- - Tue, 03 Mar 2015 20:54:58 GMT
29
+ - Tue, 03 Mar 2015 22:47:25 GMT
30
30
  Content-Type:
31
31
  - application/json
32
32
  Content-Length:
@@ -38,13 +38,13 @@ http_interactions:
38
38
  Cache-Control:
39
39
  - private
40
40
  X-Served-By:
41
- - www319.flickr.bf1.yahoo.com
41
+ - www243.flickr.bf1.yahoo.com
42
42
  Vary:
43
43
  - Accept-Encoding
44
44
  Age:
45
45
  - '0'
46
46
  Via:
47
- - http/1.1 fts113.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
47
+ - http/1.1 fts101.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
48
  http/1.1 r07.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
49
49
  Server:
50
50
  - ATS
@@ -58,7 +58,7 @@ http_interactions:
58
58
  15:54:24","takengranularity":"0","takenunknown":"0","lastupdate":"1416111853"},"views":"92","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":[{"id":"128898522-15631479625-1422028","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"the
59
59
  comedy","_content":"thecomedy","machine_tag":0},{"id":"128898522-15631479625-17975","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"gigs","_content":"gigs","machine_tag":0},{"id":"128898522-15631479625-228989594","author":"128943844@N06","authorname":"rawfunkmaharishi","raw":"photographer:kim","_content":"photographerkim","machine_tag":0}]},"urls":{"url":[{"type":"photopage","_content":"https:\/\/www.flickr.com\/photos\/rawfunkmaharishi\/15631479625\/"}]},"media":"photo"},"stat":"ok"}'
60
60
  http_version:
61
- recorded_at: Tue, 03 Mar 2015 20:54:58 GMT
61
+ recorded_at: Tue, 03 Mar 2015 22:47:25 GMT
62
62
  - request:
63
63
  method: post
64
64
  uri: https://api.flickr.com/services/rest/
@@ -74,8 +74,8 @@ http_interactions:
74
74
  - FlickRaw/0.9.8
75
75
  Authorization:
76
76
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
77
- oauth_nonce="POoToL2%2BHBEVSE1Lt50VRY9qCMAlqvJ9oJpBo9JAzZE%3D", oauth_signature="<FLICKR_SECRET>%26",
78
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1425416098", oauth_token="",
77
+ oauth_nonce="suO%2BYgwuYjwuvcncWHF82uBNLN24OqTrmocpEWQRZe8%3D", oauth_signature="<FLICKR_SECRET>%26",
78
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1425422845", oauth_token="",
79
79
  oauth_version="1.0"
80
80
  Content-Type:
81
81
  - application/x-www-form-urlencoded
@@ -85,7 +85,7 @@ http_interactions:
85
85
  message: OK
86
86
  headers:
87
87
  Date:
88
- - Tue, 03 Mar 2015 20:54:59 GMT
88
+ - Tue, 03 Mar 2015 22:47:26 GMT
89
89
  Content-Type:
90
90
  - application/json
91
91
  Content-Length:
@@ -97,14 +97,14 @@ http_interactions:
97
97
  Cache-Control:
98
98
  - private
99
99
  X-Served-By:
100
- - www295.flickr.bf1.yahoo.com
100
+ - www41.flickr.bf1.yahoo.com
101
101
  Vary:
102
102
  - Accept-Encoding
103
103
  Age:
104
104
  - '0'
105
105
  Via:
106
- - http/1.1 fts122.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
107
- http/1.1 r19.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
106
+ - http/1.1 fts121.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
107
+ http/1.1 r09.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
108
108
  Server:
109
109
  - ATS
110
110
  Connection:
@@ -121,5 +121,5 @@ http_interactions:
121
121
  known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
122
122
  States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"}]},"stat":"ok"}'
123
123
  http_version:
124
- recorded_at: Tue, 03 Mar 2015 20:54:59 GMT
124
+ recorded_at: Tue, 03 Mar 2015 22:47:26 GMT
125
125
  recorded_with: VCR 2.9.3
@@ -15,8 +15,8 @@ http_interactions:
15
15
  - FlickRaw/0.9.8
16
16
  Authorization:
17
17
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
18
- oauth_nonce="6Myoiw%2BiAA7g2sP4Z5tnoU7%2B9hR%2FdqtMPx6eFQLK%2F1I%3D", oauth_signature="<FLICKR_SECRET>%26",
19
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1425307190", oauth_token="",
18
+ oauth_nonce="Wc2tv7NmVQhpvNXeGqIdotmU8Sr5wuD0pnvoeFYoxnk%3D", oauth_signature="<FLICKR_SECRET>%26",
19
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1425422843", oauth_token="",
20
20
  oauth_version="1.0"
21
21
  Content-Type:
22
22
  - application/x-www-form-urlencoded
@@ -26,7 +26,7 @@ http_interactions:
26
26
  message: OK
27
27
  headers:
28
28
  Date:
29
- - Mon, 02 Mar 2015 14:39:59 GMT
29
+ - Tue, 03 Mar 2015 22:47:24 GMT
30
30
  Content-Type:
31
31
  - application/json
32
32
  Content-Length:
@@ -38,14 +38,14 @@ http_interactions:
38
38
  Cache-Control:
39
39
  - private
40
40
  X-Served-By:
41
- - www30.flickr.bf1.yahoo.com
41
+ - www256.flickr.bf1.yahoo.com
42
42
  Vary:
43
43
  - Accept-Encoding
44
44
  Age:
45
- - '0'
45
+ - '2'
46
46
  Via:
47
- - http/1.1 fts113.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
- http/1.1 r15.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
47
+ - http/1.1 fts112.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
48
+ http/1.1 r14.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
49
49
  Server:
50
50
  - ATS
51
51
  Connection:
@@ -53,9 +53,9 @@ http_interactions:
53
53
  body:
54
54
  encoding: ASCII-8BIT
55
55
  string: '{"photo":{"id":"16649739916","secret":"a575f69e94","server":"8661","farm":9,"dateuploaded":"1425159508","isfavorite":0,"license":"1","safety_level":"0","rotation":0,"originalsecret":"e33e9d3d4a","originalformat":"jpg","owner":{"nsid":"73135567@N00","username":"pikesley","realname":"Sam","location":"London","iconserver":"5072","iconfarm":6,"path_alias":"pikesley"},"title":{"_content":"Catface"},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1425159508","taken":"2015-02-28
56
- 22:36:25","takengranularity":"0","takenunknown":"0","lastupdate":"1425159602"},"views":"19","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\/16649739916\/"}]},"media":"photo"},"stat":"ok"}'
56
+ 22:36:25","takengranularity":"0","takenunknown":"0","lastupdate":"1425159602"},"views":"24","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\/16649739916\/"}]},"media":"photo"},"stat":"ok"}'
57
57
  http_version:
58
- recorded_at: Mon, 02 Mar 2015 14:39:59 GMT
58
+ recorded_at: Tue, 03 Mar 2015 22:47:24 GMT
59
59
  - request:
60
60
  method: post
61
61
  uri: https://api.flickr.com/services/rest/
@@ -71,8 +71,8 @@ http_interactions:
71
71
  - FlickRaw/0.9.8
72
72
  Authorization:
73
73
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
74
- oauth_nonce="2T5dLPn6PimygG664wjU5l7XkhPrU0ceUD3z53FpGZs%3D", oauth_signature="<FLICKR_SECRET>%26",
75
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1425307199", oauth_token="",
74
+ oauth_nonce="Ihq0IzNChUshX474Cl9Rkdl03oLjmlyALBalVGSFzXk%3D", oauth_signature="<FLICKR_SECRET>%26",
75
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1425422844", oauth_token="",
76
76
  oauth_version="1.0"
77
77
  Content-Type:
78
78
  - application/x-www-form-urlencoded
@@ -82,7 +82,7 @@ http_interactions:
82
82
  message: OK
83
83
  headers:
84
84
  Date:
85
- - Mon, 02 Mar 2015 14:39:59 GMT
85
+ - Tue, 03 Mar 2015 22:47:24 GMT
86
86
  Content-Type:
87
87
  - application/json
88
88
  Content-Length:
@@ -94,14 +94,14 @@ http_interactions:
94
94
  Cache-Control:
95
95
  - private
96
96
  X-Served-By:
97
- - www304.flickr.bf1.yahoo.com
97
+ - www26.flickr.bf1.yahoo.com
98
98
  Vary:
99
99
  - Accept-Encoding
100
100
  Age:
101
101
  - '0'
102
102
  Via:
103
- - http/1.1 fts117.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
104
- http/1.1 r12.ycpi.dea.yahoo.net (ApacheTrafficServer [cMsSf ])
103
+ - http/1.1 fts120.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
104
+ http/1.1 r14.ycpi.ir2.yahoo.net (ApacheTrafficServer [cMsSf ])
105
105
  Server:
106
106
  - ATS
107
107
  Connection:
@@ -118,5 +118,5 @@ http_interactions:
118
118
  known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
119
119
  States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"}]},"stat":"ok"}'
120
120
  http_version:
121
- recorded_at: Mon, 02 Mar 2015 14:39:59 GMT
121
+ recorded_at: Tue, 03 Mar 2015 22:47:24 GMT
122
122
  recorded_with: VCR 2.9.3
@@ -15,8 +15,8 @@ http_interactions:
15
15
  - FlickRaw/0.9.8
16
16
  Authorization:
17
17
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
18
- oauth_nonce="zeLROUaoZ6bzHPl1DdzMUvDMPR3YjSprpYdFxtfoklU%3D", oauth_signature="<FLICKR_SECRET>%26",
19
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1425416099", oauth_token="",
18
+ oauth_nonce="CKcZOZ7BxeocCr%2F1yj2R3KzYmdcDcn27JCwGbuHGShk%3D", oauth_signature="<FLICKR_SECRET>%26",
19
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1425422844", oauth_token="",
20
20
  oauth_version="1.0"
21
21
  Content-Type:
22
22
  - application/x-www-form-urlencoded
@@ -26,7 +26,7 @@ http_interactions:
26
26
  message: OK
27
27
  headers:
28
28
  Date:
29
- - Tue, 03 Mar 2015 20:54:59 GMT
29
+ - Tue, 03 Mar 2015 22:47:24 GMT
30
30
  Content-Type:
31
31
  - application/json
32
32
  Content-Length:
@@ -38,7 +38,7 @@ http_interactions:
38
38
  Cache-Control:
39
39
  - private
40
40
  X-Served-By:
41
- - www22.flickr.bf1.yahoo.com
41
+ - www55.flickr.bf1.yahoo.com
42
42
  Vary:
43
43
  - Accept-Encoding
44
44
  Age:
@@ -56,7 +56,7 @@ http_interactions:
56
56
  Dickson","location":"London, UK","iconserver":"7338","iconfarm":8,"path_alias":"cluttercup"},"title":{"_content":""},"description":{"_content":""},"visibility":{"ispublic":1,"isfriend":0,"isfamily":0},"dates":{"posted":"1424289792","taken":"2015-02-18
57
57
  16:56:20","takengranularity":"0","takenunknown":"0","lastupdate":"1424289832"},"views":"37","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\/cluttercup\/15950875724\/"}]},"media":"photo"},"stat":"ok"}'
58
58
  http_version:
59
- recorded_at: Tue, 03 Mar 2015 20:54:59 GMT
59
+ recorded_at: Tue, 03 Mar 2015 22:47:24 GMT
60
60
  - request:
61
61
  method: post
62
62
  uri: https://api.flickr.com/services/rest/
@@ -72,8 +72,8 @@ http_interactions:
72
72
  - FlickRaw/0.9.8
73
73
  Authorization:
74
74
  - OAuth realm="https://api.flickr.com/services/rest/", oauth_consumer_key="<FLICKR_API_KEY>",
75
- oauth_nonce="VY2qScign6PYW0Ro7fZX%2BkSmyRBQKejSHNZR%2B5rYl3I%3D", oauth_signature="<FLICKR_SECRET>%26",
76
- oauth_signature_method="PLAINTEXT", oauth_timestamp="1425416099", oauth_token="",
75
+ oauth_nonce="ETyAm8OsxWXkgjtBML1%2FeNzpZUH2ElmvCB9kksmzlsk%3D", oauth_signature="<FLICKR_SECRET>%26",
76
+ oauth_signature_method="PLAINTEXT", oauth_timestamp="1425422844", oauth_token="",
77
77
  oauth_version="1.0"
78
78
  Content-Type:
79
79
  - application/x-www-form-urlencoded
@@ -83,7 +83,7 @@ http_interactions:
83
83
  message: OK
84
84
  headers:
85
85
  Date:
86
- - Tue, 03 Mar 2015 20:55:00 GMT
86
+ - Tue, 03 Mar 2015 22:47:25 GMT
87
87
  Content-Type:
88
88
  - application/json
89
89
  Content-Length:
@@ -95,14 +95,14 @@ http_interactions:
95
95
  Cache-Control:
96
96
  - private
97
97
  X-Served-By:
98
- - www252.flickr.bf1.yahoo.com
98
+ - www261.flickr.bf1.yahoo.com
99
99
  Vary:
100
100
  - Accept-Encoding
101
101
  Age:
102
102
  - '2'
103
103
  Via:
104
- - http/1.1 fts123.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
105
- http/1.1 r17.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
104
+ - http/1.1 fts103.flickr.bf1.yahoo.com (ApacheTrafficServer/4.0.2 [cMsSf ]),
105
+ http/1.1 r07.ycpi.ams.yahoo.net (ApacheTrafficServer [cMsSf ])
106
106
  Server:
107
107
  - ATS
108
108
  Connection:
@@ -119,5 +119,5 @@ http_interactions:
119
119
  known copyright restrictions","url":"https:\/\/www.flickr.com\/commons\/usage\/"},{"id":"8","name":"United
120
120
  States Government Work","url":"http:\/\/www.usa.gov\/copyright.shtml"}]},"stat":"ok"}'
121
121
  http_version:
122
- recorded_at: Tue, 03 Mar 2015 20:55:00 GMT
122
+ recorded_at: Tue, 03 Mar 2015 22:47:25 GMT
123
123
  recorded_with: VCR 2.9.3