Skip to main content
PyPI Downloads Ask questions at https://gitter.im/sigma67/spotify_to_ytmusic 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotify_to_ytmusic-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spotify_to_ytmusic-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file spotify_to_ytmusic-0.1.0.tar.gz.

File metadata

  • Download URL: spotify_to_ytmusic-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for spotify_to_ytmusic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb1f0343482849ed8bccd01bfd3f3b4d48b7fc822552f92312b9b52cd82eb85b
MD5 7704ab2903c781f86f44671d7af83ce9
BLAKE2b-256 554489be475c64d127c0e9c58fd6fb75d68d5ac0c72a79ff6a00289e21293e7b

See more details on using hashes here.

File details

Details for the file spotify_to_ytmusic-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spotify_to_ytmusic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 925cbb9a13b7d4aeef436bb8fc39617c8aafb0c9430dfcab1bb4af57ef851945
MD5 d8d106469834ee371a61a7936b558164
BLAKE2b-256 6885a0d6cbd049f395d581a9d1239f68df4d9edad5bfff1bbecb38a0626d6e00

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.0

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 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