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
duration
is an analysis found insong/profile
, and not inplaylist/static
method, so we need a secondresponse
from theapi
.this is one way of obtaining each song
duration
(as well as printingartist_name
andsong_title
):