GithubHelp home page GithubHelp logo

playlist_picker's Introduction

Spotify playlist picker

python3 playlist_picker.py -h

Built in help:

usage: playlist_picker.py [-h] [-pl PLAYLIST_LINK | -pf PLAYLIST_FILE]
                          [-of OUTPUT_FILE] [-sf SECRET_FILE]

Parse tracks info from Spotify playlist

optional arguments:
  -h, --help            show this help message and exit
  -pl PLAYLIST_LINK, --playlist-link PLAYLIST_LINK
                        Playlist sharing link, e.g. https://open.spotify.com/u
                        ser/{user_id}/playlist/{playlist_id}?si=pRBErmskRAWY-u
                        2CAQ5t0w
  -pf PLAYLIST_FILE, --playlist-file PLAYLIST_FILE
                        Playlist in file(text file with the list of tracks).
                        Can be obtained from the Spotify app: select all
                        tracks from playlist(Ctrl + A), copy it(Ctrl + C) and
                        paste(Ctrl + V) in the text file
  -of OUTPUT_FILE, --output-file OUTPUT_FILE
                        Save tracks info to the specified file. Will be
                        rewrited if exists
  -sf SECRET_FILE, --secret-file SECRET_FILE
                        File with your credentials in JSON format: {
                        client_id: "xxx", client_secret: "yyy" }. It used for
                        authorization. Can be obtained here:
                        https://developer.spotify.com/dashboard/

Tracks in PLAYLIST_FILE format:

https://open.spotify.com/track/3FiDA9GX921AiW7iEpYS3K

SECRET_FILE format(JSON):

{
    "client_id": "xxx",
    "client_secret": "yyy"
}

For obtaining client_id and client_secret you must registrate new application for your account here

Use cases:

python3 playlist_picker.py -pf playlist.txt -sf secret.json
python3 playlist_picker.py -sf secret.json -of output.txt -pl https://open.spotify.com/user/{user_id}/playlist/{playlist_id}?si=qQvI_Ii-SEabLb23j-vgRQ

playlist_picker's People

Contributors

example123 avatar

Watchers

 avatar

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.