Transfer your Spotify liked songs and playlists between two accounts.
Переносит музыку (лайки + плейлисты) между двумя аккаунтами Spotify.
Как использовать:
-
Установите зависимости —
pip install requests -
Настройте
.env:cp .env.example .env
Откройте Spotify Dashboard, создайте приложение и скопируйте Client ID и Client Secret в
.env. -
Запустите —
python spotify_transfer_ready.py -
Следуйте инструкциям в терминале:
- Сначала авторизуйте Account 1 (откуда переносить)
- Затем Account 2 (куда переносить) — используйте инкогнито
- Скрипт сам перенесёт лайки и плейлисты
Важно:
.envиspotify_tokens.jsonв.gitignore— секреты не утекают- Токены живут 1 час, скрипт запросит авторизацию заново если надо
- Для второго аккаунта обязательно инкогнито
Migrate your liked songs and playlists from one Spotify account to another.
Usage:
-
Install dependencies —
pip install requests -
Set up
.env:cp .env.example .env
Go to Spotify Dashboard, create an app, and paste its Client ID and Client Secret into
.env. -
Run —
python spotify_transfer_ready.py -
Follow the terminal prompts:
- Authorize Account 1 (source) in your browser
- Authorize Account 2 (destination) in an incognito window
- The script transfers likes and playlists automatically
Notes:
.envandspotify_tokens.jsonare in.gitignore— secrets stay local- Tokens expire after 1 hour; the script will re-prompt auth if needed
- Always use incognito/private browsing for the second account
- OAuth authorization for both accounts via Spotify Web API
- Reads all liked tracks from Account 1, adds them to Account 2
- Reads all playlists (names + descriptions) from Account 1
- Creates matching playlists in Account 2 with all tracks