Skip to main content

A Python package to migrate playlists between Spotify and YouTube Music.

Project description

Spotify-YouTube Playlist Migrator 🎵

A Python package to easily migrate playlists between Spotify and YouTube Music with simple login.


Features ✨

  • Easy Authentication - Simply login with your Spotify and YouTube Music accounts
  • Migrate Spotify playlists to YouTube Music
  • Migrate YouTube Music playlists to Spotify
  • Migrate Spotify Liked Songs to YouTube Music
  • Detailed logging and migration statistics

Installation 🛠️

  1. Install the package via pip:

    pip install spotify-youtube-migrator
    
  2. Ready to use! No separate API keys or credentials required.


Usage 🚀

Migrate Spotify Playlist to YouTube Music

migrate-playlist migrate --source spotify --destination youtube --playlist <playlist_url> --name "My Playlist"

Migrate Spotify Liked Songs to YouTube Music

migrate-playlist migrate --source spotify --destination youtube --playlist liked_songs --name "My Liked Songs"

Migrate YouTube Music Playlist to Spotify

migrate-playlist migrate --source youtube --destination spotify --playlist <playlist_url> --name "My Playlist"

Check Authentication Status

migrate-playlist auth status

Clear Authentication Data

migrate-playlist auth clear

View Migration Statistics

Add the --stats flag to see details about the migration:

migrate-playlist migrate --source spotify --destination youtube --playlist <playlist_url> --stats

Authentication Flow 🔐

The first time you run a migration command:

  1. A browser window will open for you to log in to Spotify
  2. After Spotify authentication, you'll be guided through YouTube Music authentication
  3. Your authentication is securely stored for future use

Commands 📜

Command Description
migrate --source <source> Migrate playlists between platforms
--destination <destination> Specify the destination platform
--playlist <url_or_liked_songs> Provide the playlist URL or use liked_songs for Spotify Liked Songs
--name <playlist_name> Specify a custom name for the new playlist
--log Enable detailed logging
--stats Display migration statistics
auth status Check authentication status for both services
auth clear Clear saved authentication tokens

Contributing 🤝

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/YourFeature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/YourFeature)
  5. Open a pull request

License 📄

This project is licensed under the MIT License. See the LICENSE file for details.


Support 💬

If you encounter any issues or have questions, please open an issue on GitHub.

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_youtube_migrator-1.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

spotify_youtube_migrator-1.1.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file spotify_youtube_migrator-1.1.0.tar.gz.

File metadata

  • Download URL: spotify_youtube_migrator-1.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for spotify_youtube_migrator-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6b4583e6b7b608b3e19365cdc3a1543f5a0c7d2b6ce862260dd637097ede27a3
MD5 acd80c76ebd0de77e647772d012bf123
BLAKE2b-256 f02ff68003c3f5326a86064ceb7c7e7ac93af2a2d9ca532c8ad5826e3132b58b

See more details on using hashes here.

File details

Details for the file spotify_youtube_migrator-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spotify_youtube_migrator-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3421dfe719c813449ed59a027c6de93424c33d31a392fe5ecdb9e2a79d49339c
MD5 1d82f62a476b5efd07f4c2069161117b
BLAKE2b-256 204045d70d26bac959105032d22c7478f7f2d8dbd5266454e3d9e7aa3bc77804

See more details on using hashes here.

Supported by

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