Created
February 23, 2019 20:46
-
-
Save carturoch/24092b2e50754766ea105a684e74d91f 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' | |
1.upto(12) do |i| | |
remote_path = "https://via.placeholder.com/650x300/069/AAA?text=#{i}" | |
open("check_front_#{i}.png", 'wb') do |f| | |
f << open(remote_path).read | |
puts "downloaded #{i}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment