Skip to content

Simple script that converts Youtube videos of a specific playlist into Spotify music playlist

Notifications You must be signed in to change notification settings

KilMer56/YoutubeSpotifyBridge

Repository files navigation

Welcome to YoutubeSpotifyBridge 👋

Version License: MIT

Simple script that converts Youtube videos inside a specific playlist into Spotify music playlist

Table of Content

Prerequisites

  • python >=3.6.9
  • pip >=3.0.0

Configuration

Youtube

Before setting up your Youtube Secrets, the playlist that you want to fetch must be in public and accessible

  1. Create a developer key using this link
  2. Create a youtube_secrets.py file inside the youtube folder
  3. Set the following vars :
YOUTUBE_DEVELOPER_KEY = "YOUR DEVELOPER KEY"
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"
YOUTUBE_CHANNEL_ID = "YOUR CHANNEL ID"

Spotify

  1. Register an App using this link
  2. Create a spotify_secrets.py file inside the spotify folder
  3. Set the following vars :
SPOTIFY_CLIENT_ID = "YOUR APP CLIENT ID"
SPOTIFY_CLIENT_SECRET = "YOUR APP CLIENT SECRET"
SPOTIFY_CLIENT_USERNAME = "YOUR USERNAME"

Global

After setting up your Youtube and Spotify secrets, just set the youtubePlaylistTitle and spotifyPlaylistTitle vars inside the app_bridge.py file that correspond to the name of your Youtube and Spotify playlist to link

Usage

Just run the following commands to launch the script (it will run every hour, but you can modify this in the main.py file)

docker build -t youtube_spotify_bridge .
docker run youtube_spotify_bridge

ToDo

  • Improve configuration process (all vars within a single file)
  • Improve matching process between Youtube and Spotify
  • Documentation
  • Add interface ??

Author

👤 KilMer56

Show your support

Give a ⭐️ if this project helped you!

About

Simple script that converts Youtube videos of a specific playlist into Spotify music playlist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published