Skip to content

Instantly share code, notes, and snippets.

@seanstickle
Forked from shayarnett/ruby_conf_vids.rb
Created December 2, 2008 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save seanstickle/30949 to your computer and use it in GitHub Desktop.
Save seanstickle/30949 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "rubygems"
require "hpricot"
require "open-uri"
url = "http://feeds.feedburner.com/Rubyconf2008-Confreaks"
(Hpricot(open url)/:enclosure).map {|x| x.attributes["url"]}.uniq.each do |vid|
File.exist?(vid.split("/").last) ? next : `wget #{vid}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment