Git Product home page Git Product logo

copenhell-tunes's Introduction

README

Overview

A program written in python to autogenerate a playlist in spotify with top tracks for the announced artists at Copenhell 22.

Setup

In order to use the program you need to supply some credential through through either the cli, environmental variables, or a file called creds.json residing in the src folder. The three variables that has to be set are CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI. All of these can be found at <a href=”https://developer.spotify.com/dashboard/applications/“>https://developer.spotify.com/dashboard/applications/<app_uri>

an example:

{
    "client_id":"<client_id>",
    "client_secret":"<client_secret>",
    "redirect_uri":"https://localhost:8080",
    "playlist_uri":"<playlist_uri>"
}

Usage

The playlist generated has to be provided as an optional argument or set as an environment variable with ~export PLAYLIST_URI=”<playlist_uri>”~. General usage is:

 $ python roskilde_bot.py -h
usage: roskilde_bot.py [-h] [-p [playlist-uri]] [-c [country]] [-n [n-tracks]]

options:
  -h, --help            show this help message and exit
  -p [playlist-uri], --playlist-uri [playlist-uri]
                        Playlist uri - not necessary if set as env-variable
  -c [country], --country [country]
                        Country to get top tracks from
  -n [n-tracks], --n-tracks [n-tracks]
                        Number of maximum tracks for each artist

copenhell-tunes's People

Contributors

jakob1379 avatar

Watchers

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