Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Export iTunes Library XML data to CSV

tag: v0.0.2

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin Rename gem to itunes_csv September 13, 2012
Octocat-spinner-32 lib
Octocat-spinner-32 spec Add sample library (from Joshua Peek) September 14, 2012
Octocat-spinner-32 .gitignore First commit September 13, 2012
Octocat-spinner-32 Gemfile Rename gem to itunes_csv September 13, 2012
Octocat-spinner-32 LICENSE First commit September 13, 2012
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile First commit September 13, 2012
Octocat-spinner-32 itunes_csv.gemspec
README.md

iTunes CSV

Export iTunes Library XML data to CSV

Why?

iTunes allows you to copy and paste from iTunes into a spreadsheet, but this only includes visible columns. For non-visible columns you need to extract from the XML.

Installation

$ gem install itunes_csv

Usage

$ itunes_csv --help
Usage: itunes_csv [options]
    -f, --fields name,track,year     List of fields (default: name,artist)
    -p, --path PATH                  Path to iTunes XML file (default: ~/Music/iTunes/iTunes Music Library.xml)

Notes

May take a long time to run for a large iTunes library (10,000+ tracks)

Supported fields:

  • album
  • artist
  • audio?
  • audiobook?
  • composer
  • date_added
  • episode_number
  • genre
  • id
  • kind
  • last_played_at
  • movie?
  • number
  • persistent_id
  • play_count
  • played?
  • podcast?
  • season_number
  • total_time
  • tv_show?
  • unplayed?
  • video?
  • year

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.