Skip to content

Instantly share code, notes, and snippets.

@danwrong
Created July 23, 2009 13:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save danwrong/152882 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'hpricot'
require 'open-uri'
playlist = open('http://www.soundboard.com/playlist/REpFbW1hMjAwODQyMTQw_FjHigNpCqbI.xml')
doc = Hpricot::XML(playlist.read)
doc.search('//location').each do |node|
`curl -O #{node.inner_text}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment