Skip to content

Instantly share code, notes, and snippets.

@sosedoff
Created March 19, 2011 17:17
Show Gist options
  • Select an option

  • Save sosedoff/877632 to your computer and use it in GitHub Desktop.

Select an option

Save sosedoff/877632 to your computer and use it in GitHub Desktop.
Download your grooveshark favorites
require 'rubygems'
require 'grooveshark'
gs = Grooveshark::Client.new
user = gs.login('USER', 'PASSWORD')
user.favorites.each do |s|
name = "#{s.id}_#{s.artist} - #{s.name}"
puts name
url = gs.get_song_url(s)
`wget -O "/Users/sosedoff/Desktop/Music/#{name}.mp3" "#{url}"`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment