Coder Social home page Coder Social logo

spoticli's Introduction

spoticli

Command line utility for controlling Spotify devices

Features

  • Play/pause active device playback locally or remotely using p, play, or pause
  • Set active device volume using vol
  • Get output of currently playing track using np
  • Search for songs and albums using search or s
  • Play specific songs or albums using play query or by sending the output of a search
  • Skip to the next or previous songs using next and previous
  • Add a song to the play queue using queue or q

In development:

  • First-time usage script that sets the device the script is running on for seamless playback start, as well as the option to write Spotify username/developer data to disk rather than having to create a credentials file on your own.

Installation

Requires spotipy, which can be installed using

sudo pip install git+https://github.com/plamere/spotipy.git --upgrade

Which is required to use the most recent features, since the pip version of spotipy is outdated.

Once that is installed, clone the repository and run using python spoticli.py, or alias to whatever you may find useful.

Sample Commands

Display the currently playing track:

$ python spoticli.py np
Twenty One Pilots - My Blood

Pause playback on the active device:

$ python spoticli.py pause
Paused playback on jacob-pc

Set active device volume:

$ python spoticli.py vol 50
Set volume on jacob-pc to 50%

spoticli's People

Contributors

jp3isme avatar wjacobc avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

bedelman3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.