Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-spotify-api

Allows you to interact with spotify with a web API.

What does it solve ?

Do you want to integrate spotify with any other tool ?

Well, you can't because of recent decisions, removing the web based API.

This tool "fixes" that by interacting with still present APIs to merge into web based API.

Secured through simple Basic HTTP Auth, you can now controle the music from anything.

How does it work ?

There are multiple "backends".

The idea is that a "backend" is just a "raw" Spotify API.

You can make your own too !

Copy the core/backends/backend.py to have the base.

Your new class must inherite from SpotifyAPIBackend.

Check out core/backends/dbus_api.py for some inspiration.

How can I configure it ?

Edit the main.py file.

You can change:

  • HOST: define the ip to bind to. common values are localhost or 127.0.0.1 to only open the API to localhost, or 0.0.0.0 to bind on all interfaces
  • PORT: define the port to bind to
  • USES_AUTHENTICATION: if set to True, you'll need to authenticate with a valid user:password combination.
  • USERS: define the users that can authenticate.
  • BACKEND: define the used backend. Note: for now, only dbus is available. You can add more on the core/backends/ directory, and by adding them to the AVAILABLE_BACKENDS variable, found on the core/web_server.py file.
  • VERSION: version number shown on swagger

Support

  • Linux
    • using dbus
  • MacOS (ongoing)
    • using applescript
  • Windows (not planned for now)

About

Allows you to interact with spotify with a web API.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages