如何使用 python 将歌曲上传到 spotify?

How to upload songs to spotify using python?

我正在尝试弄清楚如何使用 python 将歌曲上传到 Spotify。我知道可以将本地 mp3 文件上传到 spotify,然后随身携带。 python spotify api 不支持这个吗?我已经查看了所有这些,但似乎找不到任何像这样的功能。特别是 spotipy api。我会直接问他们,但他们说要在堆栈溢出时向 post 提问。

你说得对,暂时不支持通过API上传个人图书馆。 Spotify 在 limitation.

中提到了这一点

It is not currently possible to add local files to playlists using the Web API, but they can be reordered or removed.

以后也不太可能发生。希望这有帮助。