A Spotify player that fetches songs from an URL and plays the first song found (it parses it as XML and searches for first item with an href attribute).
Made to work with BIP:
http://github.com/Bignetwork/BIP
But should be able to work with other things.
Developers:
- Jonathan Ström
- Victor Sollerhed
$ python client.py -u USERNAME -p PASSWORD
It only works with premium accounts (since those are Spotifys rules for libspotify).
- libspotify
- pyspotify
- pygame (for playing ads between songs)
http://developer.spotify.com/en/libspotify/overview/
brew install libspotify
(old, new instructions for libspotify-0.0.6 might be needed)
wget https://developer.spotify.com/download/libspotify/libspotify-0.0.4-linux6-i686.tar.gz
tar xzf libspotify-*.tar.gz
cd libspotify-*
sudo make install prefix=/usr/local
(export LD_LIBARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/)
Specifically jodals fork (because it's the most updated one):
http://github.com/jodal/pyspotify
git clone http://github.com/jodal/pyspotify.git
sudo setup.py instalal
The prefix used on Linux might be needed on Mac aswell, not sure, needs testing.
git clone http://github.com/jodal/pyspotify.git
sudo setup.py install --prefix=/usr/local
Or see these instructions:
http://www.mopidy.com/docs/master/installation/libspotify/
sudo apt-get install python-pygame