GithubHelp home page GithubHelp logo

heolink / spotifyripper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anderstornkvist/spotifyripper

0.0 2.0 0.0 193 KB

small ripper script for spotify (rips playlists to mp3 and includes ID3 tags and album covers)

Python 100.00%

spotifyripper's Introduction

spotifyripper

small ripper script for spotify (rips playlists to mp3 and includes ID3 tags and album covers)

note that stream ripping violates the ToC's of libspotify!

Usage:

usage: jbripper [-h] -u USER -p PASSWORD -U URL [-l [LIBRARY]] [-O OUTPUTDIR]
                [-P] [-V VBR] [-I] [-f | -d]

Rip Spotify songs

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  spotify user
  -p PASSWORD, --password PASSWORD
                        spotify password
  -U URL, --url URL     spotify url
  -l [LIBRARY], --library [LIBRARY]
                        music library path
  -O OUTPUTDIR, --outputdir OUTPUTDIR
                        music output dir (default is current working directory)
  -P, --playback        set if you want to listen to the tracks that are currently ripped (start with "padsp ./jbripper.py ..." if using pulse audio)
  -V VBR, --vbr VBR     Lame VBR quality setting. Equivalent to Lame -V parameter. Default 0
  -I, --ignoreerrors    Ignore encountered errors by skipping to next track in playlist
  -o, --oldtags         set to write ID3v2 tags version 2.3.0 instead of newer version 2.4.0
  -f, --file            Save output mp3 file with the following format: "Artist - Song - [ Album ].mp3" (default)
  -d, --directory       Save output mp3 to a directory with the following format: "Artist/Album/Song.mp3"

Example usage:
        rip a single file: ./jbripper.py -u user -p password -U spotify:track:52xaypL0Kjzk0ngwv3oBPR
        rip entire playlist: ./jbripper.py -u user -p password -U spotify:user:username:playlist:4vkGNcsS8lRXj4q945NIA4
        check if file exists before ripping: ./jbripper.py -u user -p password -U spotify:track:52xaypL0Kjzk0ngwv3oBPR -l ~/Music

features:

  • real-time VBR ripping from spotify PCM stream
  • writes id3 tags (including album cover)
  • Check for existing songs

prerequisites:

  • Python 2 (if P3 is also install change env to python2 and use pip2)
  • libspotify (download at https://developer.spotify.com/technologies/libspotify/)
  • pyspotify (sudo pip install -U pyspotify)
  • spotify appkey (download at developer.spotify.com, requires Spotify Premium)
  • jukebox.py (pyspotify example)
  • lame (sudo apt-get install lame)
  • eyeD3 (pip install eyeD3)

TODO:

  • detect if other spotify instance is interrupting

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.