GithubHelp home page GithubHelp logo

makeplaylist's Introduction

Functionality

Adding Songs

Through the CLI and the optional Discord Bot mutliple Songs can be added to a Spotify playlist specified by it's name. If no Playlist with the specified name exists yet one will automatically be created. To find the Songs on Spotify the Text entered will be used with Spotify's Search API and the first result picked and added.

Retrieving Audio Features

Through the CLI and the optional Discord Bot the Audio Features for a Playlist will be retrieved. For every Song the Audio Features will be requested on Spotify's API and averaged out over all Songs in the Playlist.

Setup

You will need to add a .env file containing

  • SPOTIPY_USERNAME: "Your Spotify Username"
  • SPOTIPY_CLIENT_ID: "your Spotify client_id"
  • SPOTIPY_CLIENT_SECRET: "your Spotify client_secret"
  • SPOTIPY_REDIRECT_URI: "a redirection url (e.g. 'https://localhost:8080')"

Optional

When using a discord bot you can text the bot the bot the name of the playlist as well as all the songs to be added. It will automatically create a Playlist if the name specified is not yet a Playlist.

  • DISCORD_BOT_TOKEN: "the token for the discord bot"
  • MY_USER_ID: "Your own Discord user id"
  • USERS: "The Discord id's of allowed users"

Ease of use

  • doskey for easier access: doskey sp=py D:\Programmieren\Python\MakePlaylist\cli.py $\* or

  • a .bat file containing @echo off py D:\Programmieren\Python\MakePlaylist\cli.py %*

makeplaylist's People

Watchers

Leo 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.