Best I have seen is a thing that converts Spotify playlists to YT ones and then just use youtube-dl. I have seen some automation around this. It is 80-90% accurate and requires a little cleanup in terms of playlist conversation, same versions of songs etc.
This (commercial) program[1] does the job for Spotify. I think what it does is just play the given playlist then it sets Spotify's audio output to a virtual audio device similar to BlackHole[2], then reads from it, encodes the audio, fetches the metadata (including album art) and sets it. There are open source[3] alternatives[4] but I haven't tested them.
I would only use this in conjunction with something like iTunes Match (which is still around), because I want the original song data. That is what I meant by "high quality"