admin管理员组文章数量:1356566
The function (audio-features) has been deprecated on the Spotify Web API. I need to be able to extract the 12 metrics Spotify uses such as (energy, danceability etc) and I am not sure how else to go about this since the feature is now gone.
I am using this feature to create a Song Recommendation system in Python using Spotipy for my A level coursework. If anyone can help, it would be really appreciated!
artist = "Metallica"
track = "Enter Sandman"
track_id = sp.search(q='artist:' + artist + ' track:' + track)['tracks']['items'][0]['id']
print(track_id)
track_features = sp.audio_analysis(track_id)[0]
print(track_features)
本文标签: pythonIs there an alternative to the audio features function in SpotipyStack Overflow
版权声明:本文标题:python - Is there an alternative to the audio features function in Spotipy? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743989451a2571865.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论