Skip to content

Instantly share code, notes, and snippets.

@justinledwards
Last active August 29, 2015 14:16
Show Gist options
  • Save justinledwards/605c786f250fdb4b1c91 to your computer and use it in GitHub Desktop.
Save justinledwards/605c786f250fdb4b1c91 to your computer and use it in GitHub Desktop.
for aaron
#!/bin/bash
\curl -sSL https://get.rvm.io | bash -s stable --rails
# first do 'gem install itunes'
#then open irb and paste the stuff in below, line by line
require 'itunes'
itunes = ITunes::Client.new
songs = itunes.music('mudd she hates me')
songs.results.each do |song|
puts "#{song.track_name} - #{song.artist_name} (#{song.collection_name})"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment