shayarnett (owner)

Forks

Revisions

gist: 30549 Download_button fork
public
Public Clone URL: git://gist.github.com/30549.git
Embed All Files: show embed
ruby_conf_vids.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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