Mercurial > hg > pmhd
view musixmatch.py @ 12:80a9556123da
Final version
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Thu, 25 Apr 2013 17:18:39 +0100 |
parents | 8c29444cb5fd |
children |
line wrap: on
line source
import musixmatch import musixmatch.ws import json import soundcloud 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