Transfer liked tracks from Yandex.Music to YouTube Music.
python main.py --help
usage: main.py [-h] [--yandex YANDEX] [--output OUTPUT] [--youtube YOUTUBE]
Transfer tracks from Yandex.Music to YouTube Music
options:
-h, --help show this help message and exit
--yandex YANDEX Yandex Music token
--output OUTPUT Output json file
--youtube YOUTUBE Youtube Music credentials file. If file not exists, it will be created.
- Get Yandex Music token. It is easiest to do this with the application.
- Install dependencies and run the program:
pip install -r requirements.txt
python main.py --yandex <Yandex Music token>
- When starting the program, follow the provided link to authorize in YouTube Music, allow access to the account, and press
Enter
to continue. - Wait for the program to finish. The program will also export music data to a JSON file:
{
// liked tracks in Yandex Music
"liked_tracks":[
{
"artist": "Artist",
"name": "Track Name"
}
],
// tracks not found during transfer
"not_found":[],
// tracks that encountered an error during transfer
"errors":[]
}
- yandex-music - unofficial python API for Yandex.Music
- ytmusicapi - unofficial python API for YouTube Music
I wrote this script because I couldn't find anything similar online. I'll be happy with pull requests and stars :-)