install requirements
pip install redis
pip install https://github.com/jc/python-lastfm/zipball/master
edit config.py
-
Get api key from [http://www.lastfm.jp/api/account]
-
edit config.py
api : { 'key' : 'YOUR API KEY' }
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