Skip to content

Instantly share code, notes, and snippets.

@gustin
Forked from shayarnett/ruby_conf_vids.rb
Created December 2, 2008 03:04
Show Gist options
  • Save gustin/30960 to your computer and use it in GitHub Desktop.
Save gustin/30960 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'open-uri'
vids = []
f = open('http://feeds.feedburner.com/Rubyconf2008-Confreaks')
f.each do |l|
l =~ /enclosure url=\"([^\"]+)"/
vids << $1
end
vids.compact!.uniq!
vids.each do |vid|
next if File.exist?(vid.split('/').last)
puts "Downloading #{vid}"
`wget #{vid}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment