GithubHelp home page GithubHelp logo

kaiiiz / spotify2kkbox Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 68 KB

A song shift tool from spotify to kkbox. (using kbl)

License: MIT License

Python 52.23% HTML 16.62% JavaScript 30.52% CSS 0.63%
python kkbox kbl spotify flask

spotify2kkbox's Introduction

Spotify2KKBOX

A song shift tool from spotify to kkbox (using kbl)

โš ๏ธ Disclaimer: This tool is produced by the reverse engineering, and is my own works, KKBOX and Spotify aren't related to this tool. Be careful, there is no endorsement of this tool. Use at your own risk.

Background

Since KKBOX doesn't provide any API to modify playlist. The only way I found to convert playlist is using the import/export playlist features in KKBOX windows app.

So I wrote the python script in order to create kbl file last year, pack it with flask recently.

See How to use

How it works?

  1. Get spotify playlist with its API
  2. Search keyword in KKBOX API
  3. Use crawler to search kbl's track id in track url (kbl's track id isn't same as API's track id)
  4. Package up all informations and generate kbl file

How to use?

Installation

git clone https://github.com/kaiiiz/Spotify2KKBOX.git
cd Spotify2KKBOX
pipenv install
pipenv shell

Configuration

Go to KKBOX for developer, create app and set redirect_url to http://localhost:5000/login/kkbox/authorized

Go to Spotify for developer, create app and set redirect_url to http://localhost:5000/login/spotify/authorized

The final thing to do, copy your client_id and client_secret to config.py

Run server

Back to command line, run

flask run

Open localhost:5000 and follow the tutorial

spotify2kkbox's People

Stargazers

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