Created
          August 6, 2012 18:54 
        
      - 
      
 - 
        
Save typeshige/3277532 to your computer and use it in GitHub Desktop.  
    Convert an itunes export into csv for Excel.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/python | |
| file = open('0.txt', 'rb') | |
| lines = [] | |
| for line in file: | |
| lines.append(line) | |
| bigline = ''.join(lines) | |
| lines = bigline.split('\r') | |
| for line in lines: | |
| parts = ['"%s"' % part.strip() for part in line.split('\t')] | |
| print ','.join(parts) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment