Skip to content

Instantly share code, notes, and snippets.

@tanaka51
Created January 25, 2016 05:55
Show Gist options
  • Save tanaka51/4a41692b080a14605b69 to your computer and use it in GitHub Desktop.
Save tanaka51/4a41692b080a14605b69 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'yaml'
open('https://raw.githubusercontent.com/flada-auxv/refactored-bassoon/master/config/image_urls.yml') {|f|
YAML.load(f).each_with_index{|u,i|
open("#{i}.jpg", 'w') {|f|
f.write open(u).read
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment