Skip to content

Inexpediency/spotify2yandexmusic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify2yandexmusic

Tool for Migration from Spotify to Yandex Music

Getting stated

  1. Install requirements: pip3 install -r requirements.txt
  2. Provide environment variables (see configuration)
  3. Run application: python3 ./src/main.py
  4. Log in to the open page in browser
  5. Copy the url, paste it into the terminal
  6. Ready

Configuration

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"

Spotify client id, secret and redirect uri

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.

Yandex music token

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.

About

Tool for Migration from Spotify to Yandex Music

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages