Code Monkey home page Code Monkey logo

spotify-dl's Introduction

spotify-dl

A command line utility to download songs, podcasts, playlists and albums directly from Spotify's servers.

You need a Spotify Premium account.

Installation

You can install it using cargo, homebrew or from source.

Using cargo

cargo install spotify-dl

Using homebrew

brew tap guillemcastro/spotify-dl
brew install spotify-dl

From source

git clone https://github.com/GuillemCastro/spotify-dl.git
cd spotify-dl
cargo build --release
cargo install --path .

Usage

spotify-dl 0.2.0
A commandline utility to download music directly from Spotify

USAGE:
    spotify-dl [OPTIONS] <tracks>... --username <username>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -c, --compression <compression>    Setting the flac compression level from 0 (fastest, least compression) to
                                       8 (slowest, most compression). A value larger than 8 will be Treated as 8.
                                       Default is 4.
    -d, --destination <destination>    The directory where the songs will be downloaded
    -t, --parallel <parallel>          Number of parallel downloads. Default is 5. [default: 5]
    -p, --password <password>          Your Spotify password
    -u, --username <username>          Your Spotify username

ARGS:
    <tracks>...    A list of Spotify URIs or URLs (songs, podcasts, playlists or albums)

Songs, playlists and albums must be passed as Spotify URIs or URLs (e.g. spotify:track:123456789abcdefghABCDEF for songs and spotify:playlist:123456789abcdefghABCDEF for playlists or https://open.spotify.com/playlist/123456789abcdefghABCDEF?si=1234567890).

Disclaimer

The usage of this software may infringe Spotify's ToS and/or your local legislation. Use it under your own risk.

License

spotify-dl is licensed under the MIT license. See LICENSE.

spotify-dl's People

Contributors

chlyniklas avatar dbalague avatar derblub avatar github-actions[bot] avatar guillemcastro avatar nyvs avatar obito1903 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spotify-dl's Issues

Include playlist track number

It would be great to have an option to keep the track number (in the title for instance) when downloading a whole playlist.
(It would also be great for people who download albums I guess, but it's not something I do).

By the way, thanks for the work!

Add mp3 support

I'm trying to implement mp3 support by using "Syphonia" crate. I've added a new option-switch, but unfortunately, my build is failing in the modified file_sink and I have no idea why (that's why no pull-request yet). Can you help out? Have you ever used that crate before?

unwrap() issue

This is my first attempt at running with Rust, so I'm afraid I'm not confident in trying to figure it by myself...

I had an error on my Mac, when trying to run it in the following ways (after a successful cargo build):

cargo run spotify-dl --username MyUserName "https://open.spotify.com/playlist/1lCFgHBNwlqxuki0H9BxGL?si=3fe59aa036f54ef3"
    Finished dev [unoptimized + debuginfo] target(s) in 0.23s
     Running `target/debug/spotify-dl spotify-dl --username MyUserName 'https://open.spotify.com/playlist/1lCFgHBNwlqxuki0H9BxGL?si=3fe59aa036f54ef3'`
Password:
thread 'main' panicked at src/main.rs:149:62:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Any idea what this might be?

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.