comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 # gets data from the last.fm webservice and
2
3 import pylast
4 import sys
5 import fm_network
6
7 network = fm_network.get_network()
8
9 # now you can use that object every where
10 artist = network.get_artist(sys.argv[1])
11
12 (score, sharedas) = artist.compare_with_artist(sys.argv[2])
13
14 print(score)
15
16