Skip to content

Instantly share code, notes, and snippets.

@pjdavis
Forked from seanstickle/ruby_conf_vids.rb
Created December 2, 2008 14:17
Show Gist options
  • Save pjdavis/31124 to your computer and use it in GitHub Desktop.
Save pjdavis/31124 to your computer and use it in GitHub Desktop.
Ruby Hoedown 2008
#!/usr/bin/env ruby
require "rubygems"
require "hpricot"
require "open-uri"
url = "http://feeds.feedburner.com/RubyHoedown2008-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