I want my Echonest response to get song duration, which is supposed to be part of the audio_summary.
params = {
'type':'artist-radio',
'artist':artist,
'results': 3,
'bucket' : ['id:spotify-WW', 'tracks'],
'limit': True
}
response = en.get('playlist/static', **params)
songs = response['songs']
so, to get song duration, which key/value should I use in the example above?
NOTE: the wrapper being used is pyen
durationis an analysis found insong/profile, and not inplaylist/staticmethod, so we need a secondresponsefrom theapi.this is one way of obtaining each song
duration(as well as printingartist_nameandsong_title):