如何使用 python 在 windows 上获取当前播放的媒体标题?

How to get the currently played media title on windows using python?

How do I get this title using python?

我还没有尝试过任何东西,因为我不知道应该使用哪个库以及如何使用。

看看这个 Whosebug 问题 - 因为你的图片是 spotify 播放的音乐,这个问题可能对你有帮助。

他们指的是这个图书馆:https://github.com/XanderMJ/spotilib

如果你想通过 Python 直接控制 spotify,你也可以看看这个库:https://pypi.org/project/pyspotify/

对于与 Spotify Web 的交互 Api,这可能也有帮助:https://spotipy.readthedocs.io/en/2.16.1/