Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Grooveshark example
require 'grooveshark'
client =
session = client.session
songs = client.search_songs('Nirvana')
puts "Number of results -- #{songs.size}"
songs.each do |song|
url = client.get_song_url(songs.first)
puts "Copy and paste this URL into your browser and it should play: " + url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment