On click screenreading software(invisible in background), to filter out your current spotify songs name, out of your Spotify Client and then creates a file named 'song_name.txt' in the same directory you launched the code from. Once ran it will every 8-15 seconds(randomised) overwrite the recently created file, with the current song & artist name like the following sample: 'Song: The Weeknd - The Hills ♪' and also print it in the python console.
This is pretty usefull if you're using OBS for example, you can just add a 'Text (GDI+)' Source into your current scene, and add the created 'song_name.txt' file location as source to that text, inside it's properties in OBS.
pip install pywinauto
pip install psutil
pip install pywin32
Only if you get an error with win32api, you've to get the correct version(your .py ver., OS) of https://github.com/mhammond/pywin32/releases
I'm fully aware that there's an Spotify API that will exactly replicate the functionality of this code, but it requires you to run the official Spotify client, which I'm not doing, my Spotify user data is never going back to the Spotify Server, which makes it impossible for me to use their API.
Dependant on how many people show me that they're liking the code by giving stars on this repo, I'll expand functionality & push more quality of life updates.