Spotify is a music streaming service available in Scandinavia(I think). But you if you’re outside Scandinavia you can still use it, all you have to do is to follow these easy instructions found at TechCrunch:
1) go to http://www.daveproxy.co.uk/
2) enter the following URL: https://www.spotify.com/en/get-started/
3) Create your account, for UK postcode - check http://www.postcodesearch.org.uk/
Spotify provies an API for developers. Thats so cool! There’s so many interesting things you can do with it. Unfortunately though, it is as to the date of this blog post only available for the Linux platform. I’m on a mac, plus I prefer to write platform-independent code.
I found Despotify, which is an open source project providing a cross platform Spotify API. It only works with Premium accounts(unless you modify it’s source code), but I’m totally fine with that. So I attempted to get it to run on my mac. Found some binaries, but they were outdated. Tried to compile by using macports. Outdated…
So how do I build Despotify on Mac OS X?
You could compile all the dependencies manually. Or you can do what I did:
Install despotify using macports. Doing this because macports will build the dependencies.
sudo port install despotify
Manually compile libvorbis and libogg. They can be downloaded from here.
This is a bit nasty, but I did this because they are installed to some odd path by macports, and I did not succeed in specifying the path. You can uninstall the libvorbis, libogg and despotify ports.
Check out and compile despotify
svn co https://despotify.svn.sourceforge.net/svnroot/despotify despotify
cd despotify/src
make
If someone follow these instructions, please let me know how it works out.