No longer works :(
Due to Spotify deprecating their Apps API this no longer functions.
Export your Spotify library as JSON!
To view local apps you need to have a developer account, you can apply for one here: https://developer.spotify.com/technologies/apps/#developer-account
Create a folder called Spotify in your home directory (if you don't already have one):
Clone the repo into your Spotify app folder
cd ~/Spotify git clone git://github.com/jamesrwhite/spotify-export.git
Now you need to set up a quick symlink
ln -s ~/Spotify/spotify-export/export ~/Spotify
Now open up Spotify and paste this into the search box
After a brief bit of loading you should see something like this:
See sample.json for an example of the JSON output.