An open API service indexing awesome lists of open source software.

https://github.com/kaiiiz/spotify2kkbox

A song shift tool from spotify to kkbox. (using kbl)
https://github.com/kaiiiz/spotify2kkbox

flask kbl kkbox python spotify

Last synced: over 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/kaiiiz/Spotify2KKBOX/wiki/How-to-use%3F)

## 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](https://developer.kkbox.com/#/app), create app and set `redirect_url` to `http://localhost:5000/login/kkbox/authorized`

Go to [Spotify for developer](https://developer.spotify.com/dashboard/), 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](https://github.com/kaiiiz/Spotify2KKBOX/wiki/How-to-use%3F)