Skip to content

lemonpaul/yandex2spotify

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.

yandex2spotify

A simple Python script that allows to import favorite tracks, playlists, albums, and artists from Yandex.Music to Spotify

Installation

pip3 install -r requirements.txt

Usage

  1. Register a dummy Spotify OAuth application and add https://open.spotify.com as a callback URI in its settings.

  2. Obtain a Yandex.Music OAuth token.1

  3. Run the script using Client ID and Client Secret copied from your app's Spotify dashboard:

python3 importer.py --id <spotify_client_id> --secret <spotify_client_secret> -u <spotify_username> -t <yandex_token>
  1. If you don't want to import some items (likes, playlists, albums, artists) you can exclude them by specifying the -i/--ignore argument, for example:
python3 importer.py --id <spotify_client_id> --secret <spotify_client_secret> -u <spotify_username> -t <yandex_token> -i playlists albums artists

Footnotes

  1. Since it's impossible to register an OAuth application with Yandex.Music access scope, you have to reuse the token from music.yandex.ru itself.

About

Simple Python script that allow to import music from Yandex.Music to Spotify

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages