Git Product home page Git Product logo

spoticly's Introduction

SPOTICLY

NPM Build Status npm

Browse, control and listen to spotify from the command line (mac os only for now, windows support might come later)

Why would I need this?

I am on dual screen at work and I was fed up with switching from command line/ editor to spotify all the time, also I was not happy with already existing CLI solutions, I made this CLI utility to spare me some time. Context switching aside, it's actually even faster than using the GUI.

alt text

INSTALL AND SETUP

INSTALL

npm install -g spoticly

FIRST USE

Get your credentials (spotify client ID and secret token) by creating an app at this address: https://developer.spotify.com/my-applications It's fast and easy, put whatever in the form.

Spoticly will ask for it the first time you use it.

Usage

Listen to an artist

By default, you will get to choose among an artist's albums using this command:

    spoticly artist radiohead

Use the '--choose' option or just 'ch' if you need to choose among several artists, it's useful if several artists have similar names, ex:

    spoticly artist ch radiohead
    spoticly artist --choose radiohead

    (will give you a list of artists to choose from)

Use the 'all' option if you want to select not only albums but also singles and compilations (without this option, you will get to choose among albums only)

    spoticly artist all nirvana

Use the '--top-tracks' option, or just 'tt' if you just want to listen to the artist's top tracks, ex:

    spoticly artist tt qotsa

    (will play Queen of the Stone Age's top tracks)

Listen to a playlist

Use this command to choose a playlist or its shortcut 'pl':

    spoticly playlist "chanson française"    
    spoticly pl "chanson française"

Listen to a specific track

You can search for a specific track using the "track" command, or 'tr'

    spoticly track "song for the dead"
    spoticly tr "song for the dead"

Navigate inside an album or a playlist

Use 'track-list' or 'tr' to display and navigate inside an album or playlist

    spoticly track-list
    spoticly tl

CONTROLS AND OTHER COMMANDS

Use the --help command to get a detailed list of all features (play/pause/next/previous etc...)

    spoticly --help

TODO

Improve tests, get a user's playlists, paginate long playlists, add an about command, notify updates...

spoticly's People

Contributors

matthieu-rolland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lendormi

spoticly's Issues

Error in windows 10 . Sample don't work. Childprocess error

D:\temp> spoticly artist radiohead

  • I found 14 albums !

    OK Computer OKNOTOK 1997 2017 (album - 2017)
    A Moon Shaped Pool (album - 2016)
    TKOL RMX 1234567 (album - 2011)
    The King Of Limbs (album - 2011)
    In Rainbows (album - 2007)
    In Rainbows Disk 2 (album - 2007)
    Com Lag: 2+2=5 (album - 2004)
    Hail To the Thief (album - 2003)
    Amnesiac (album - 2001)
    I Might Be Wrong (album - 2001)
    Kid A (album - 2000)
    OK Computer (album - 1997)
    The Bends (album - 1995)
    Pablo Honey (album - 1993)
    events.js:183
    throw er; // Unhandled 'error' event
    ^

Error: spawn osascript ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

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.