pythonwindowsaudio-player

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


How do I get this title using python?

I haven't tried anything yet since I do not know which library should I use and how.


Solution

  • Have a look at this StackOverflow Question - since your picture as music played by spotify, this question might help you.

    How to get Spotify current playing song in Python (Windows)?

    They are referring to this Library: 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/

    For interaction with the Spotify Web Api, this might also be helpful: https://spotipy.readthedocs.io/en/2.16.1/