pyechonest(echonestpython库)如何在本地收集当前艺术家的数据?

2024-06-25 22:48:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我安装了pyechonest模块来做一些有趣的音乐分析,我想知道pyechonest如何返回艺术家的当前数据?每次我在我的机器上运行python脚本时,它都会访问在线托管的数据库吗?在


Tags: 模块数据脚本机器数据库音乐艺术家pyechonest
1条回答
网友
1楼 · 发布于 2024-06-25 22:48:32

这可以通过函数pyechonest.artist.search来完成

我将为您提供文档中的示例代码。

from pyechonest import artist

results = artist.search(description=['synthpop'], buckets=['id:7digital', 'id:musicbrainz'], results=5)

for something in results: //the rest of your code

更多详情请参见here

相关问题 更多 >