view core/magnatagatune/fm_retrieve_artist_similarity.py @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
line wrap: on
line source
# gets data from the last.fm webservice and 

import pylast
import sys
import fm_network

network = fm_network.get_network()

# now you can use that object every where
artist = network.get_artist(sys.argv[1])

(score, sharedas) = artist.compare_with_artist(sys.argv[2])

print(score)