GNU General Public License v3.0

项目介绍

dropcreations/Manzana-Apple-Music-Downloader 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前获得 421 个 Star、50 次 Fork。

仓库全名
dropcreations/Manzana-Apple-Music-Downloader
开源许可证
GNU General Public License v3.0
Star 数
421
Fork 数
50
未关闭 Issue
33

README 摘要

Manzana Apple Music Downloader A python program to download albums and songs with AAC codec in .m4a container format and music-videos upto 4K in AVC or HEVC codec in .mp4 format from Apple Music. This python program uses the module called pywidevine that is a python implementation of Google's Widevine DRM (Digital Rights Management) CDM (Content Decryption Module). This doesn't support to download spatial audios…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Manzana-Apple-Music-Downloader 用什么语言开发?

主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前有 421 个 Star。

Manzana-Apple-Music-Downloader 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 Manzana-Apple-Music-Downloader 的源码?

可以直接克隆仓库:git clone https://github.com/dropcreations/Manzana-Apple-Music-Downloader.git,默认分支为 main;安装与运行步骤见仓库 README。

Manzana-Apple-Music-Downloader 最近还在维护吗?

仓库最近一次更新为 2025年9月6日,当前有 33 个未关闭 Issue;Star 数为 421,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A python program to download albums and songs with AAC codec in .m4a container format and music-videos up to 4K in AVC or HEVC codec in .mp4 format from Apple Music.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
528
价值分
266
活跃状态
活跃

语言占比

Python

Release

贡献者

README

Manzana Apple Music Downloader

A python program to download albums and songs with AAC codec in .m4a container format and music-videos upto 4K in AVC or HEVC codec in .mp4 format from Apple Music. This python program uses the module called pywidevine that is a python implementation of Google’s Widevine DRM (Digital Rights Management) CDM (Content Decryption Module). This doesn’t support to download spatial audios (Dolby Atmos) and Apple Lossless audios (ALAC) because those are not protected with Widevine. They are protected with the FairPlay. FairPlay is a digital rights management (DRM) technology developed by Apple Inc.

Apple Music

! DISCLAIMER

  • THIS REPOSITORY IS ONLY FOR EDUCATIONAL PURPOSES.

This will help you to understand how the Apple Music API works and how to deal with python scripts. You can use the source code to run and test this program or you can also use the compiled binary files from the releases.

Features

  • Can download album urls.
  • Can download song urls.
  • Can download music-video urls.
  • Can download playlist urls.
  • Can download artist urls (all albums, singles, music-videos).
  • Can download animated-cover.
  • Can download time-synced lyrics as .lrc.

Required

Make sure you have installed below in your PC or have added into the PATH.

  • MP4Box
  • mp4decrypt (bento4)
  • ccextractor

Usage

First of all you have to clone this project to your pc. If you’re using git, you can do it simply by following command.

git clone https://github.com/dropcreations/Manzana-Apple-Music-Downloader.git

or you’re not using git, just download the source code as a .zip file and extract it. Then go to the project directory.

This is a python program. So, you have to install python first (Recommended python version is 3.9). Then you have to install all dependancies that need to run this program. You can approach this using below command.

pip install -r requirements.txt

NOTE: Use python3 or pip3 if python or pip doesn’t work for you.

Now you can run the program. In first run it will create all directories that need to deal inside the program. You have to fill the things that it will ask for. Firstly, it will ask to put your Widevine device files into device directory.

So, copy your widevine device directory to it. it should contain device_client_id_blob and device_private_key files. Example for the file structure inside the device directory given below.

.
.
|--config
|--device
|  |--{device_name}
|      |--device_client_id_blob
|      |--device_private_key
|--keys
.
.

Then it will also ask for your mediaUserToken. Get it from cookies and add it to the program. You can get help page using below command.

python manzana.py -h

it will show you the help page.

usage: manzana [-h] [-v] [-a] [-s] [-ln] [-tn] [-cn] url [url ...]

Manzana: Apple Music Downloader

positional arguments:
  url               Apple Music URL(s) for artist, album, song, playlist or music-video

optional arguments:
  -h, --help        show this help message and exit
  -v, --version     show program's version number and exit
  -a, --anim-cover  save animated artwork. [default: False]
  -s, --skip-video  skip music-videos inside albums. [default: False]
  -ln, --no-lrc     don't save time-synced lyrics. [default: False]
  -tn, --no-tags    don't add credits info. [default: False]
  -cn, --no-cover   don't save album artwork. [default: False]

Now you can start.

python manzana.py {url(s)},...

You can input multiple urls at one time. Just add url_01 url_02 url_03... with a space separator. You also can add text files that have urls. Just like url_01 txt_file_path_01 url_02.... If you’re going to use a text file, urls must be in line by line as below.

https://music.apple.com/url_01
https://music.apple.com/url_02
https://music.apple.com/url_03
https://music.apple.com/url_04
.
.

NOTE: When you’re downloading an artist, if you want all items, just type all keyword when it ask for an ID.

THIS IS FOR PRIVATE USE ONLY. TAKE YOUR OWN RISK AND USE IT!

Demo

musicVideo

album

artist

Note

评论

暂无评论