Giter VIP home page Giter VIP logo

ghettoripper's Introduction

Ghettoripper

'Rip' Spotify playlists via youtube videos and update downloaded files.

Configuration

Configuration is done by setting environment variables.

SPOTIPY_CLIENT_ID='<YOUR_SPOTIFY_KEY_ID>'
SPOTIPY_CLIENT_SECRET='<YOUR_SPOTIFY_KEY_SECRET>'
SPOTIPY_REDIRECT_URI='http://localhost/'  # value doesn't matter
GHETTORIPPER_USERNAME='<YOUR_SPOTIFY_USERNAME>'
GHETTORIPPER_BASEDIR='/home/<YOUR_USERNAME>/Music/Ghettoripper'  # any directory you want

Usage

  • Call 'add-list ' for each playlist you want to download. (A playlist URI looks like this: spotify:user:1121742695:playlist:0snhUokcY72SSfwfY6YlKu)
  • Call 'update'
  • Enjoy files!

To download tracks which were added to the lists you downloaded, simply call 'update' again.

usage: ghettoripper.py [-h]
                       {add-list,rm-list,sync,infer,update-tracks,update-lists,update,ignore,unignore,delignored}
                       ...

positional arguments:
  {add-list,rm-list,sync,infer,update-tracks,update-lists,update,ignore,unignore,delignored}
                        sub-command help
    add-list            Add a playlist to the database
    rm-list             Remove a playlist from the database
    sync                Synchronize tracklists and playlist names from spotify
    infer               Infer YouTube video links for the tracks
    update-tracks       Download missing tracks and remove tracks that were
                        deleted
    update-lists        (Re)generate all playlist files
    update              shortcut for: sync, infer, update-tracks, update-lists
    ignore              Ignore the given track uris
    unignore            Unignore the given track uris
    delignored          Remove tracks that are ignored

optional arguments:
  -h, --help            show this help message and exit

File structure

$GHETTORIPPER_BASEDIR
├── ghettoripper.sqlite
├── playlists
│   ├── fertiger_Minimal.m3u
│   ├── Minimal_Techno_-_Tech_House.m3u
│   └── Techstep.m3u
└── tracks
    ├── 01whzdYiUQD9aK9TbX7EbZ.mp3
    ├── 02nwohaKLZbtec9jG6V7lc.mp3
    ├── ...

Related software

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.