Skip to content

Instantly share code, notes, and snippets.

@zylew
zylew / down_apple_special_event_2012.rb
Created March 8, 2012 10:51
Download "Apple Special Event 2012" from apple. http://events.apple.com.edgesuite.net/123pibhargjknawdconwecown/event/index.html This script is based on previous WWDC keynote download script: https://gist.github.com/1012426
#!/usr/bin/env ruby
require 'open-uri'
size_hash = {"720p" => "6540", "720i" => "4540", "540p" => "2540", "540i" => "1840", "360p" => "1240", "360i" => "0640", "360is" => "0440", "224p" => "0240"}
if ["--help", "help", "-h"].include?(ARGV[0]) || ARGV.size < 1
puts "Usage: #{File.basename __FILE__} ( #{size_hash.keys.join(' | ')} )"
exit 0
end