Created
January 25, 2016 05:55
-
-
Save tanaka51/4a41692b080a14605b69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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