Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 python 脚本指向我的 iTunes 目录并提取播放列表信息。我相信播放列表信息在 .ITL 文件中?我怎样才能使用python做到这一点?
iTunes 库 xml 文件与 .itl 文件位于同一目录中。该文件采用 Apple plist 格式,Python 的标准库有一个很好的解析器。
根据Apple的说法,在同一位置还应该有一个 xml 文件,其明确目的是使您的音乐和播放列表可用。尝试使用 pythons 许多 xml 解析器之一来获取该信息。例如,minidom。