Accessing iTunes XML metadata with Python
Summary
While I don't cover SQL APIs in this article, my ultimate goal in this exercise is to create and update an SQL music database with this metadata. You may choose to use it for other purposes, such as analytics, sharing with other applications, or rendering in HTML for website display. Because XML is a widely used industry standard, there is an abundance of libraries available in almost every programming language. In this case, I've chosen Python. Whatever your goal, it is useful to have a solid understanding of how iTunes music metadata is defined and organized so you can decide how to get the metadata that you need.
Infos
- XML: https://www.w3.org/standards/xml/schema
- iTunes Package Music Specification 5.3.14, PDF: https://help.apple.com/itc/musicspec/en.lproj/static.html
- xml.etree.ElementTree: https://docs.python.org/3/library/xml.etree.elementtree.html
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)