Transfer Spotify playlists to YouTube Music
Project description
A simple command line script to clone a Spotify playlist to YouTube Music.
Transfer a single Spotify playlist
Like all the songs in a Spotify playlist
Update a transferred playlist on YouTube Music
Transfer all playlists for a Spotify user
Like all songs from all playlists for a Spotify user
Remove playlists from YouTube Music
Install
Python 3 - https://www.python.org
pipx - https://pipx.pypa.io
pipx ensurepath
Open a new shell. Install:
pipx install spotify_to_ytmusic
Setup
Generate a new app at https://developer.spotify.com/dashboard
Run
spotify_to_ytmusic setup
For backwards compatibility you can also create your own file and pass it using --file settings.ini.
If you want to transfer private playlists from Spotify (i.e. liked songs), choose “yes” for oAuth authentication, otherwise choose “no”. For oAuth authentication you should set http://localhost as redirect URI for your app in Spotify’s developer dashboard.
Usage
After you’ve completed setup, you can simply run the script from the command line using:
spotify_to_ytmusic create <spotifylink>
where <spotifylink> is a link like https://open.spotify.com/playlist/0S0cuX8pnvmF7gA47Eu63M
The script will log its progress and output songs that were not found in YouTube Music to noresults_youtube.txt.
Transfer all playlists of a Spotify user
For migration purposes, it is possible to transfer all public playlists of a user by using the Spotify user’s ID (unique username).
spotify_to_ytmusic all <spotifyuserid>
Transfer liked tracks of the Spotify user
You must use oAuth authentication for transferring liked songs.
spotify_to_ytmusic liked
This command will open browser where you should give access to your account (if you haven’t done that before). After authorization you will be redirected to localhost, copy link you were redirected to (looks like localhost/?code=…) and paste to command line.
Command line options
There are some additional command line options for setting the playlist name and determining whether it’s public or not. To view them, run
spotify_to_ytmusic -h
To view subcommand help, run i.e.
spotify_to_ytmusic setup -h
Available subcommands:
positional arguments:
{setup,create,update,remove,all}
Provide a subcommand
setup Set up credentials
create Create a new playlist on YouTube Music.
update Delete all entries in the provided Google Play Music playlist and update the playlist with entries from the Spotify playlist.
remove Remove playlists with specified regex pattern.
all Transfer all public playlists of the specified user (Spotify User ID).
options:
-h, --help show this help message and exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file spotify_to_ytmusic-0.5.0.tar.gz
.
File metadata
- Download URL: spotify_to_ytmusic-0.5.0.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8a9d999eb727671b4c6c0b2470eabb7a986d564907f5de39af671fa0e50ce8 |
|
MD5 | 14d5b5ac0475a371fd3fd9d0e3d47117 |
|
BLAKE2b-256 | 5d701d12023f9df2efde78e7d5824a058ba883d7b833eb88b30562bc439e2ec2 |
Provenance
The following attestation bundles were made for spotify_to_ytmusic-0.5.0.tar.gz
:
Publisher:
pythonpublish.yml
on sigma67/spotify_to_ytmusic
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
spotify_to_ytmusic-0.5.0.tar.gz
- Subject digest:
0d8a9d999eb727671b4c6c0b2470eabb7a986d564907f5de39af671fa0e50ce8
- Sigstore transparency entry: 151038842
- Sigstore integration time:
- Predicate type:
File details
Details for the file spotify_to_ytmusic-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: spotify_to_ytmusic-0.5.0-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fce34643445afd957b42c67f14be31cdcb7b42204759006bd74560d4886b33ff |
|
MD5 | f9e92661fcffbbc3150cd1202345453f |
|
BLAKE2b-256 | c733ed755d785db18b13545a10eca08083f66311a1fda4b90c50c4d82fc7fd31 |
Provenance
The following attestation bundles were made for spotify_to_ytmusic-0.5.0-py3-none-any.whl
:
Publisher:
pythonpublish.yml
on sigma67/spotify_to_ytmusic
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
spotify_to_ytmusic-0.5.0-py3-none-any.whl
- Subject digest:
fce34643445afd957b42c67f14be31cdcb7b42204759006bd74560d4886b33ff
- Sigstore transparency entry: 151038843
- Sigstore integration time:
- Predicate type: