Skip to content

lo-han/spotify-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Migration

Automation to migrate playlist or albums from Spotify to Youtube

Note: Currently album migration is not supported

Setting

Server

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

Spotify

Register at https://developer.spotify.com/dashboard.

Youtube

  1. Register a new resource at https://console.cloud.google.com/cloud-resource-manager
  2. Register a new client at https://console.cloud.google.com/auth/clients
  3. Add Youtube API V3 scope to the new client at https://console.cloud.google.com/auth/scopes

Environment

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)

Run the app

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

Contributing

Please don't commit to master branch. Thank you.

About

Migrate Playlists and Albuns from Spotify to Youtube (if you're trying to escape advertisement using Brave Browser)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages