A few years ago I used Joel Lehman’s Spotify playlist export script to get data out of Spotify, but that doesn’t seem to work anymore. After trying a number of tools on the web, I ran across Exportify which allowed me to export my Spotify playlists as CSV files.
As with Lehman’s script, you’ll need to grant Exportify access to your Spotify account using the single sign on option. I’d recommend granting access, exporting your playlists, and then immediately revoking access within Spotify.