Skip to content
deamon for spotify in python
Python
Branch: master
Clone or download
Pull request Compare This branch is 11 commits ahead, 1 commit behind stroem:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ads
src
.gitignore
README.md
client.conf
client.py
test_http.py

README.md

Intro

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

How to use:

$ python client.py -u USERNAME -p PASSWORD

It only works with premium accounts (since those are Spotifys rules for libspotify).

Requirements

  • libspotify
  • pyspotify
  • pygame (for playing ads between songs)

libspotify:

http://developer.spotify.com/en/libspotify/overview/

How to install

On Mac:

brew install libspotify

On Linux:

(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/)

pyspotify:

Specifically jodals fork (because it's the most updated one):

http://github.com/jodal/pyspotify

How to install:

On Mac:

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.

On Linux:

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/

pygame (for ads-player):

How to install:

On Linux:

sudo apt-get install python-pygame
You can’t perform that action at this time.