Simple script that converts Youtube videos inside a specific playlist into Spotify music playlist
- python >=3.6.9
- pip >=3.0.0
Before setting up your Youtube Secrets, the playlist that you want to fetch must be in public and accessible
- Create a developer key using this link
- Create a
youtube_secrets.py
file inside the youtube folder - 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"
- Register an App using this link
- Create a
spotify_secrets.py
file inside the spotify folder - Set the following vars :
SPOTIFY_CLIENT_ID = "YOUR APP CLIENT ID"
SPOTIFY_CLIENT_SECRET = "YOUR APP CLIENT SECRET"
SPOTIFY_CLIENT_USERNAME = "YOUR USERNAME"
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
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
- Improve configuration process (all vars within a single file)
- Improve matching process between Youtube and Spotify
- Documentation
- Add interface ??
👤 KilMer56
- LinkedIn: @killianmer
Give a ⭐️ if this project helped you!