简体   繁体   English

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

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

How do I get this title using python?如何使用 python 获得此标题?

I haven't tried anything yet since I do not know which library should I use and how.我还没有尝试过任何东西,因为我不知道我应该使用哪个库以及如何使用。

Have a look at this StackOverflow Question - since your picture as music played by spotify, this question might help you.看看这个 StackOverflow 问题 - 因为你的图片是由 spotify 播放的音乐,所以这个问题可能会对你有所帮助。

How to get Spotify current playing song in Python (Windows)? 如何在 Python (Windows) 中获取 Spotify 当前正在播放的歌曲?

They are referring to this Library: https://github.com/XanderMJ/spotilib他们指的是这个库: https://github.com/XanderMJ/spotilib

If you wanna directly control spotify via Python you might also have a look at this library: https://pypi.org/project/pyspotify/如果你想通过 Python 直接控制 spotify,你也可以看看这个库: https://pypi.org/project/pyspotify/

For interaction with the Spotify Web Api, this might also be helpful: https://spotipy.readthedocs.io/en/2.16.1/对于与 Spotify Web Api 的交互,这也可能会有所帮助: https://spotipy.readthedocs.io/en/2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 python 获取 windows 10 中当前正在播放的媒体的标题 - How can I get the title of the currently playing media in windows 10 with python 在 Windows 上获取当前播放媒体缩略图的方法仅对每个 Python 实例有效一次 - Approach to get currently playing media's thumbnail on Windows only works once per Python instance 如何获取在PyQt4中播放的媒体的总持续时间? - How to get the total duration of media being played in PyQt4? 如何使用 Python 从 Windows 操作系统中的窗口标题中获取 PID? - How do I get a PID from a window title in windows OS using Python? 如何使用 python 获取控制台的标题名称? - How to get title name of console using python? 如何使用 Spotify API Python 获取其他用户最近播放的歌曲 - How to get other user recently played song using Spotify API Python 如何使用Python在Rhythmbox中获取当前播放的歌曲 - How do I get the currently playing song in Rhythmbox using Python 如何使用 Python 从 Windows 中的视频文件中获取 Title 属性 - How to get Title property from video file in windows with Python 如何使用Python监控Windows 7上的VLC媒体播放器? - How to monitor VLC media player on Windows 7 using Python? 如何在python中使用Pywinauto通过空格传递Windows完整标题名称 - How to Pass windows full title name with space using Pywinauto in python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM