Skip to content

Instantly share code, notes, and snippets.

@sbjustin
Last active December 16, 2015 17:49
Show Gist options
  • Save sbjustin/5473235 to your computer and use it in GitHub Desktop.
Save sbjustin/5473235 to your computer and use it in GitHub Desktop.
#require 'active_support'
require 'active_support/core_ext/hash'
require 'net/http'
require 'json'
FLICKR_USER_ID = '47465178@N06'
res = Net::HTTP.get('api.flickr.com',"/services/feeds/photos_public.gne?id=#{FLICKR_USER_ID}")
res_hash = Hash.from_xml(res)
res_hash["feed"]["entry"].each do |image|
puts image["link"][1]["href"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment