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)
- Host: GitHub
- URL: https://github.com/kaiiiz/spotify2kkbox
- Owner: kaiiiz
- License: mit
- Created: 2019-02-02T05:24:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:39:03.000Z (over 3 years ago)
- Last Synced: 2023-03-05T01:38:06.120Z (over 3 years ago)
- Topics: flask, kbl, kkbox, python, spotify
- Language: Python
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)