Created
July 23, 2009 13:01
-
-
Save danwrong/152882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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