/music_similarity

find similar artist using last.fm API

Primary LanguagePython

install requirements

pip install redis
pip install https://github.com/jc/python-lastfm/zipball/master

edit config.py

show usage

python ./run.py -h

run(update db)

python ./run.py <key> -u

run(read only)

python ./run.py <key>

data in Redis

list

  • list:artists
    • value: [ {artist_name},, ...]
    • type: list

rank

  • rank:artists
    • value: [ ({artist_name},{score}), ...]
    • type: sorted set
  • rank:tags
    • value: [ ({tag_name},{score}), ...]
    • type: sorted set

artist

  • artist:tags:{artist_name}
    • value: [ {tag_name}, ...]
    • type: list
  • artist:similars{artist_name}
    • value: [ ({tag_name},{score}), ...]
    • type: sorted set
  • artist:sims:{artist_name}
    • value: [ {tag_name}, ...]
    • type: list

tag

  • tag:artists:{tag_name}
    • value: [{artist_name}, ...]
    • type: list