GMusic provides a serias of APIs to search songs from music.g.cn. Title and aritist are supported now.
require 'gmusic' result = GMusic.search(:title => 'heal the world', :artist => 'michael jackson') puts result.class # => Array result.first.keys # => [:artist, :album, :format, :size, :url, :id, :lyrics, :title]
-
hpricot github.com/whymirror/hpricot
gem install gmusic
Copyright © 2010 Tower He. See LICENSE for details.