iTunes-Library-Network-Graph

Created: 2012-03-21 02:19
Updated: 2019-02-06 18:39

README.md

iTunes Music Library Network Graph

No Maintenance Intended

Experimentation with D3.js force-directed graphs using iTunes library data.

See a running demo.

Installation

  1. Clone project into a public web server path.
  2. Run ./iTunesGraphParser.py to scan your iTunes library and write a new ./js/music-data.json file.
  3. Point browser to index.html on your web server.

iTunesGraphParser.py

A python command line script is included that parses an iTunes library file and outputs JSON data.

Usage: iTunesGraphParser.py [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -f FILE, --file=FILE  iTunes Library XML file path
  -o OUTPUT, --output=OUTPUT
                        Output to file (default=./js/music-data.json)
  -c, --console         Output to console instead of file
  -r RATING, --rating=RATING
                        Minimum rating filter (default = 4)
  -p, --jsonp           Output in JSON-P format
  -i INDENT, --indent=INDENT
                        Indent level for output format (default=None)
  -v, --verbose         Verbose output
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more