sound-tunnel
Python3 script that transfers all Spotify playlists to Youtube-Music using spotipy and ytmusicapi
Setup
Requirements
- Install
spotipy
andytmusicapi
usingpip install -r requirements.txt
Spotify
- Generate a new app at https://developer.spotify.com/dashboard/applications)
- Fill the
redirect_uri
from config.py into the new app’s settings - Fill in your
client_id
andclient_secret
from your Spotify app into config.py file
YouTubeMusic
- Open a new tab
- Open the developer tools (Ctrl-Shift-I) and select the “Network” tab
- Go to https://music.youtube.com and ensure you are logged in
- Find an authenticated POST request.
- Paste copied cookies in headers_auth.json. Should look something like this
Run Command
- After setting up both YouTubeMusic and Spotify. Transfer all your spotify playlists to youtubemusic with
python3 main.py