Search code examples
pythonitunesplaylist

How to extract playlists (list of file locations) from iTunes using python


I want to point a python script to my iTunes directory and extract the playlist information. I believe playlist information is in a .ITL file? How can I do this using python?


Solution

  • According to Apple there should also be an xml file in the same location with the express purpose of making your music and playlists available. Try using one of pythons many xml parsers to get that information. For example, minidom.