Skip to content

pranydotin/spotify-youtube

Repository files navigation

Spotify to YouTube Music Playlist Automation

Overview

This project automates the transfer of playlists from Spotify to YouTube Music by integrating both platforms' APIs. It eliminates the need for manual playlist recreation.

Problem

There is no direct way to migrate playlists between Spotify and YouTube Music. Manual transfer is time-consuming and prone to errors due to differences in how track data is represented across platforms.

Approach

  • Extract playlist and track data using Spotify API
  • Process and standardize metadata (song name, artist)
  • Search and match corresponding tracks on YouTube Music
  • Automatically create playlists and add matched tracks

Key Challenges

  • No direct mapping between Spotify and YouTube Music tracks
  • Inconsistent metadata (naming differences, missing fields)
  • Handling mismatches and failed searches

Solution

  • Implemented validation checks for matching accuracy
  • Designed fallback search strategies for unmatched tracks
  • Built a structured workflow to handle API requests and data flow

Tech Stack

  • Python
  • Spotify Web API
  • YouTube Music API (ytmusicapi)

Project Structure

  • getPlaylist.py – Fetch playlists from Spotify
  • getSongs.py – Extract songs from playlists
  • createPlaylist.py – Create playlists on YouTube Music
  • sendSongs.py – Add songs to playlists
  • handleRequest.py – Manage API flow
  • ytmusicsetup.py – Setup YouTube Music integration

Outcome

A working automation pipeline that transfers playlists across platforms while handling real-world data inconsistencies and reducing manual effort.

About

A Python project that transfers Spotify playlists to YouTube using the Spotify and YouTube APIs. Extracts playlist data from Spotify and recreates it on YouTube automatically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages