Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Grooveshark example
require 'grooveshark'
client = Grooveshark::Client.new
session = client.session
songs = client.search_songs('Nirvana')
puts "Number of results -- #{songs.size}"
songs.each do |song|
puts song.name
end
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