Skip to content

Instantly share code, notes, and snippets.

@myokoym
Created August 2, 2012 14:48
Show Gist options
  • Save myokoym/3237594 to your computer and use it in GitHub Desktop.
Save myokoym/3237594 to your computer and use it in GitHub Desktop.
藤井がんがれ
#!ruby
require 'open-uri'
loop do
outfile = "C:/data/fujii_#{Time.now.strftime('%Y%m%d%H%M%S')}.jpg"
open(outfile, "wb") do |output|
open("http://live10.shogi.or.jp/oui/camera/3/fujii.jpg") do |data|
output.write(data.read)
puts outfile
end
end
sleep 60
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment