Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (30 loc) · 1.56 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.56 KB

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