我希望我的Echonest
response
得到song duration
,它应该是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']
那么,要获得歌曲duration
,我应该在上面的例子中使用哪个key/value
?你知道吗
注意:使用的包装是pyen
duration
是在song/profile
中找到的分析,而不是在playlist/static
方法中找到的,因此我们需要从api
中找到第二个response
。你知道吗这是获取每首歌曲
duration
(以及打印artist_name
和song_title
)的一种方法:相关问题 更多 >
编程相关推荐