Mercurial > hg > pmhd
view musixmatch.py @ 10:6840f77b83aa
commit
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Sun, 21 Apr 2013 10:55:35 +0200 |
parents | 8c29444cb5fd |
children | 80a9556123da |
line wrap: on
line source
import musixmatch import musixmatch.ws import json apikey = '8496dd1c715c69a74ef9fcde1716cf4a' chart = musixmatch.ws.track.chart.get(country='it', apikey=apikey) lyrics = musixmatch.ws.track.lyrics.get('Sexy and I know it',apikey=apikey) print '\n' + 'XXXXXXXXX' for each_item in chart['body']['track_list']: print each_item for each_line in chart['body']['lyrics']: print each_line