A song shift tool from spotify to kkbox (using kbl)
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
- Get spotify playlist with its API
- Search keyword in KKBOX API
- Use crawler to search kbl's track id in track url (kbl's track id isn't same as API's track id)
- Package up all informations and generate kbl file
git clone https://github.com/kaiiiz/Spotify2KKBOX.git
cd Spotify2KKBOX
pipenv install
pipenv shell
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
Back to command line, run
flask run
Open localhost:5000
and follow the tutorial