Skip to main content

Transfer Spotify playlists to YouTube Music

Project description

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:

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

Project details


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.4.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

spotify_to_ytmusic-0.1.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spotify_to_ytmusic-0.1.4.tar.gz
  • Upload date:
  • Size: 12.5 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.4.tar.gz
Algorithm Hash digest
SHA256 0dba4cfa7d3b863c68a4a886a2f6e88ea40b63850c49939bcb52059575b18f21
MD5 5448acdee218a9028accb49d012a3b08
BLAKE2b-256 275fb23978c6febeb89d9c5b3eb571f1dd5a160728a516928c20c78c6b95b76f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for spotify_to_ytmusic-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 20f04dd6dfb288990e4cc5735c6bfc546bc8fd1bf0b1d2993200619fb337e23c
MD5 94223effe4c98bbb6852d710590481b4
BLAKE2b-256 324a450d94b97daede56a5cf166e54b08535296440abbc5da6384cef80bbba1f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page