gamdl/README.md
R. M 00811882a9 Auto fetch authorization token
It's not necessary to manually grab the authorization token anymore.
2022-12-15 22:54:27 -03:00

2.0 KiB

Glomatico's Apple Music Downloader

A Python script to download Apple Music songs/music videos/albums/playlists.

Windows CMD usage example

This is a rework of 661a274d62.

Some new features that I added:

  • MP4Box for muxing
  • Tags for music videos
  • Multiple URLs input
  • iTunes folder structure
  • Embedded lyrics and .lrc file
  • Auto set region
  • Playlist support
  • And much more!

Setup

  1. Install Python 3.8 or higher
  2. Install the required packages using pip:
    pip install -r requirements.txt
    
  3. Add MP4Box and mp4decrypt to your PATH
  4. Export your Apple Music cookies as cookies.txt and put it in the same folder as the script
  5. Put your L3 CDM (device_client_id_blob and device_private_key files) on pywidevine/L3/cdm/devices/android_generic folder

Usage

python gamdl.py [OPTIONS] [URLS]

Tracks are saved in ./Apple Music by default, but the directory can be changed using --final-path argument.

Use --help argument to see all available options.