AppleMusicBackup
AppleMusicBackup copied to clipboard
A tool to backup your Apple Music library, and transfer songs from one Apple ID's library to another.
AppleMusicBackup
This repo can help you backup your Apple Music library, and transfer them from one Apple ID to another.
Usage
You need to have Apple Music subscription to do following operations.
- Sign in you Apple ID, click Get Songs to fetch the list of your Apple Music library songs.
- While in app, click Save to File to save a
.txt
file of a list of song ids somewhere (like iCloud Drive). - Sign in another Apple ID, click Import from File and select the file from last step to import these songs into your current library.
Steps
- Follow steps here to generate a
MusicKit identifier
and a private.p8
key file. - Install
pip
if you haven't. - Install these two packages.
sudo pip install pyjwt
sudo pip install cryptography
- Copy your
Developer Team ID
,MusicKit ID
and private key in the.p8
file intomusictoken.py
. - Run
python(3) musictoken.py
- Copy the generated token to
AppleMusicBackup/DeveloperToken.swift
. - Remember to generate a new token after 24 hour expiration time.
- Install
CocoaPods
if you haven't. - Run
pod install
. - Open
AppleMusicBackup.xcworkspace
, import your.mobileprovision
file and run.