Skip to main content
PyPI Downloads Ask questions at Discussions Code coverage Latest release Commits since latest release

A simple command line script to clone a Spotify playlist to YouTube Music.

  • Transfer a single Spotify playlist

  • Update a transferred playlist on YouTube Music

  • Transfer all playlists for a Spotify user

  • Remove playlists from YouTube Music

Install

pip install spotify_to_ytmusic

Setup

  1. Generate a new app at https://developer.spotify.com/dashboard

  2. Run

spotify_to_ytmusic setup

For backwards compatibility you can also create your own file and pass it using –file settings.ini.

Usage

After you’ve completed setup, you can simply run the script from the command line using: .. code-block:

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.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>

## 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

Metadata

Release files for spotify-to-ytmusic 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spotify-to-ytmusic 0.1.1
File Size Uploaded
spotify_to_ytmusic-0.1.1.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spotify-to-ytmusic 0.1.1
File Interpreter ABI Platform
spotify_to_ytmusic-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / spotify_to_ytmusic-0.1.1.tar.gz

Download URL spotify_to_ytmusic-0.1.1.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6bbf26bed2e7f5628d99786ae4fff6b4843a27345dd7f14fdfbd09207f7b677d
BLAKE2b-256 checksum
How to use checksums
8233f9ced54e5b2bd934c44f3a0e9684c560cb80613eeb54a5f73806a2e96551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / spotify_to_ytmusic-0.1.1-py3-none-any.whl

Download URL spotify_to_ytmusic-0.1.1-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55ab4437588fae2d50b656508debe8e8072a71e8b91c11fcdd15edd3e32f9a43
BLAKE2b-256 checksum
How to use checksums
29ad1e7e06e6626d47ce6eb911d1cf74dc438bcdce34bf98738393005aa5bf32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page