Skip to content

Instantly share code, notes, and snippets.

@levicole
Created August 20, 2009 01:33
Show Gist options
  • Save levicole/170760 to your computer and use it in GitHub Desktop.
Save levicole/170760 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'json'
require 'mash'
file = File.read("./widget.json")
mash = Mash.new(JSON.parse(file))
mash.tracks.each do |track|
`curl #{track.stream_url} > "~/immi/#{track.permalink}"`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment