Giter VIP home page Giter VIP logo

spotify-local-mapper's Introduction

spotify-local-mapper

Description

A simple tool to map you local media files into a playlist on Spotify using Python 3.

Installation

Make sure that the dependecies are installed, then simply download the script and run it.

Spotify authentication

This script will use API keys loaded from file spotify_api_keys.json and use Spotify Authorization Code Flow if such file exists in the script directory. This file should have the following format:

{
  "client_id": "SPOTIFY_CLIENT_ID,
  "client_secret": "SPOTIFY_CLIENT_SECRET",
  "callback_uri": "https://example.com/callback/"
}

Authorization will be performed only once and cached tokens will be used in subsequent runs.

If file spotify_api_keys.json does not exist or contains malformed data, Implicit Grant Flow will be used, using this app's keys. Authorization tokens will be cached only for an hour and you will be propmted for access token again.

Dependencies

Todo

  • Convert to proper package, so that dependencies can be installed automatically
  • Include interactive mode, where user can select which track should be mapped and change search query

spotify-local-mapper's People

Contributors

adgud avatar

Stargazers

Sam Marsh avatar Justice 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.