Skip to main content

一个功能强大的 Apple Music 下载工具,支持下载歌曲、音乐视频和帖子内容。

Project description

Apple Music 下载器

快速跳转:

Donate(non-porfit,no tax) here!

Python License

致谢 / Acknowledgments

本项目使用了gamdl(Glomatico的Apple Music下载器)yt-dlp的代码。我们衷心感谢gamdl和yt-dlp的所有贡献者,感谢他们在开源社区做出的杰出贡献。

This project utilizes code from gamdl (Glomatico's Apple Music Downloader) and yt-dlp. We sincerely thank all contributors to gamdl yt-dlp for their outstanding work in the open-source community.

功能特性

  • 🎵 高品质音频下载 - 支持 AAC 256kbps 等多种编码格式
  • 🎬 高清音乐视频 - 支持最高 1080p 分辨率下载
  • 👤 艺术家作品批量下载 - 通过多个链接或专辑歌单链接下载
  • 🎨 高度可定制 - 丰富的配置选项满足个性化需求

安装方式

方法一:使用安装程序(推荐,仅限Windows)

  1. Releases 页面下载最新版本的安装程序
  2. 运行 AppleMusicDownloader_Setup.exe 并按照提示完成安装
  3. 安装完成后,您可以在开始菜单中找到 "Apple Music Downloader"

方法二:从源码运行

git clone https://github.com/wenfeng110402/AppleMusic-Downloader.git
cd AppleMusic-Downloader
pip install -r requirements.txt
pip install -e .

本项目使用 src 布局;如果你不安装为可编辑包,也可以临时这样运行:

PYTHONPATH=src python -c "from amdl.cli import main; main(args=['--help'], standalone_mode=False)"

GUI 启动入口已统一为 amdl.launcher,源码运行可使用:

python -m amdl

命令行快速使用

applemusic-dl --help
applemusic-dl --cookies-path /path/to/cookies.txt "https://music.apple.com/..."

Mac?

Try this am-downloader-mac

CI/CD 验证与自动打包

仓库已内置 GitHub Actions 工作流:.github/workflows/ci-build-windows.yml

  • validate:在 Ubuntu 安装依赖并执行 python -m compileall src/amdl 做基础验证。
  • build-windows:在 Windows runner 联网下载 FFmpeg 压缩包,提取 ffmpeg.exetools/ 后执行 PyInstaller 打包。
  • 打包产物:AppleMusicDownloader-windows-exe(包含 dist/AppleMusicDownloader.exe)。

使用方式:

  1. 打开 GitHub 仓库的 Actions
  2. 选择 CI and Windows Build
  3. 点击 Run workflow 手动触发,或通过 push/PR 自动触发。

环境要求

必需组件

  • Python 3.9 或更高版本
  • 有效的 Apple Music 订阅
  • Netscape 格式的 Cookies 文件
  • FFmpeg

获取 Cookies 文件:

可选工具

以下工具为特定功能所需:

支持的链接类型

  • 单曲
  • 专辑
  • 播放列表
  • 音乐视频
  • 艺术家主页
  • 帖子视频

免责声明 / Disclaimer

本工具仅供学习与研究使用,严禁将其用于任何违反法律法规或侵犯他人权益的用途。This tool is for educational and research purposes only. Any use that violates laws or infringes on the rights of others is strictly prohibited.

  1. 本项目不直接提供或存储任何受版权保护的内容,用户需自行提供合法的凭证(如有效的 Apple Music 订阅和 Cookies 文件)以使用相关功能。This project does not directly provide or store any copyrighted content. Users must independently provide valid credentials (e.g., a valid Apple Music subscription and cookie files) to use its features.
  2. 本人不对用户如何使用本工具承担任何责任,因使用本工具产生的任何法律或版权争议,均由用户自行承担。I (or the development team) assume no responsibility for how users use this tool. Any legal or copyright disputes arising from its use are the sole responsibility of the user.
  3. 本项目基于 yt-dlp 提供的代码实现,与原项目的作者无直接关联。如有任何异议,请联系本人以便协助处理。This project is implemented based on code from yt-dlp and is not directly affiliated with the original project's authors. If there are any objections, please contact me for assistance.
  4. 用户在使用本工具时,应自行确保符合当地相关法律法规。 Users must ensure compliance with local laws and regulations when using this tool.

By using this tool, you agree to comply with all applicable laws and assume full responsibility for your actions. 通过使用本工具,您同意遵守所有适用法律,并对您的行为承担全部责任。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

applemusic_dl-2.4.1.tar.gz (52.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

applemusic_dl-2.4.1-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

Details for the file applemusic_dl-2.4.1.tar.gz.

File metadata

  • Download URL: applemusic_dl-2.4.1.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for applemusic_dl-2.4.1.tar.gz
Algorithm Hash digest
SHA256 72e6e670ac29e708a6f422f1bc58f4374b4c9a5d67befcba89c42850a9f34c3b
MD5 d8cde24852380ade85e5f21cd984de9e
BLAKE2b-256 23fd0426d875e619748629075cdcfffc03ea699c93728600e77c1d1b73d0be81

See more details on using hashes here.

File details

Details for the file applemusic_dl-2.4.1-py3-none-any.whl.

File metadata

  • Download URL: applemusic_dl-2.4.1-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for applemusic_dl-2.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebaa1d4859a46da18789ce1c12f20c058019c839aadad14fe9aee08ca5e7f893
MD5 13e5e1150596e9f22d54db97be7209a6
BLAKE2b-256 009239e1de31a6bbd9f45d5d89558d7f431e237cd0dadb6d4624370e50ca5a86

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page