Python script to synchronize two Spotify accounts
- user's saved tracks
- user's saved artists
- user's saved albums
- user's playlists
-
on each account create new app to be able to use Spotify API
- open https://developer.spotify.com/dashboard and click on "Create app" button
- click on "Settings" button
- copy "Client ID" and "Client secret" values
-
install spotipy lib
pip install spotipy- change variables with your Spotify accounts emails and values from the previous step
old_username = "your_old_account_email@outlook.com"
old_client_id = "OLD_CLIENT_ID"
old_client_secret = "OLD_CLIENT_SECRET"
new_username = "your_new_account_email@gmail.com"
new_client_id = "NEW_CLIENT_ID"
new_client_secret = "NEW_CLIENT_SECRET"- run script, sequentially, pages for authorization will open in the browser, first in the old account, then in the new one. After authorization, you need to allow the application access to your account
python spoty.py