Tool for Migration from Spotify to Yandex Music
- Install requirements:
pip3 install -r requirements.txt
- Provide environment variables (see configuration)
- Run application:
python3 ./src/main.py
- Log in to the open page in browser
- Copy the url, paste it into the terminal
- Ready
SPOTIFY_CLIENT_ID="your spotify client id"
SPOTIFY_CLIENT_SECRET="your spotify client secret"
SPOTIFY_REDIRECT_URI="your spotify redirect uri"
YANDEX_MUSIC_TOKEN="your yandex music token"
Go to dashboard and log in with your account.
Create a new application. Type something in app name and description fields, check the agreements.
Open settings, fill the field "Redirect URIs" with https://localhost
and press "Add", after press "Save".
Client id will be under the name and app status. To get client secret press the button "Show client secret".
IMPORTANT: Redirect uri must be exactly the same one as in application settings.
You can get it by clicking on the link.
Pre-enable throttling=Slow 3G
in the developer tools,
than you can pull out the authorization token when redirecting.
Copy the url that looks like:
https://music.yandex.ru/#access_token=AgAuX91237GMpF0&token_type=bearer&expires_in=31515252
Your token is placed between access-token=
and &token_type
.