itms-lib - a Ruby iTunes Music Store interface libraryitms-lib is a Ruby library designed to provide simple access to the iTunes REST (kinda) interface.
If you want to search iTunes and suck out direct links to songs, this is probably the library for you.