Automation to migrate playlist or albums from Spotify to Youtube
Note: Currently album migration is not supported
Create the necessary certificates to run local server
openssl genrsa -out server.key 2048
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
Register at https://developer.spotify.com/dashboard.
- Register a new resource at https://console.cloud.google.com/cloud-resource-manager
- Register a new client at https://console.cloud.google.com/auth/clients
- Add Youtube API V3 scope to the new client at https://console.cloud.google.com/auth/scopes
After Youtube and Spotify setup, add your credentials to a new .env file, like the following:
SPOTIFY_ID=
SPOTIFY_SECRET=
YOUTUBE_ID=
YOUTUBE_SECRET=
Then export your environment
export $(cat .env | xargs)Migrate playlist
go run . playlist "<your_playlist_name>"Migrate album
go run . album "<album_name>"Note:You must authorize both Spotify and Youtube clicking the printed CLI links
Please don't commit to master branch. Thank you.