Created
March 19, 2011 17:17
-
-
Save sosedoff/877632 to your computer and use it in GitHub Desktop.
Download your grooveshark favorites
This file contains hidden or 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 '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