Skip to content

Instantly share code, notes, and snippets.

@danwrong
Created July 23, 2009 13:01
Show Gist options
  • Save danwrong/152882 to your computer and use it in GitHub Desktop.
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