I just spent the better part of the day trying to get a "music archival tool" to work, but I wasn't able to get my Spotify account to connect.
The eventual solution I ended up with was to spin up a Windows VM, get the tool connected to my Spotify account there and copy over the config file from the Windows installation to my (Linux BTW) actual computer.
Of course, I've never really dabbled in emulation past old video game consoles, so getting a Windows VM up and running involved its own troubleshooting... The whole thing felt absurd, especially since there are so many easy ways to download music, but this was one of those times where I didn't want to let the computer best me.