Skip to content

Instantly share code, notes, and snippets.

@suryagaddipati
Created September 15, 2011 21:03
Show Gist options
  • Save suryagaddipati/1220480 to your computer and use it in GitHub Desktop.
Save suryagaddipati/1220480 to your computer and use it in GitHub Desktop.
rdio-lyrics
#!/usr/bin/ruby
MusixMatch::API::Base.api_key = <your key>
artist = %x[osascript -e 'tell app "Rdio" to get the artist of the current track']
song = %x[osascript -e 'tell app "Rdio" to get the name of the current track']
puts MusixMatch.i_m_feeling_lucky("#{artist} - #{song}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment