Skip to content

Instantly share code, notes, and snippets.

View dannyshisler's full-sized avatar

Danny Shisler dannyshisler

View GitHub Profile
@dannyshisler
dannyshisler / main.py
Created January 21, 2019 16:31
Python 3.7 script for reading a batch of mp3 files and extracting their coverart to image files and their metadata to a csv file
import eyed3
import os
import csv
def main():
folder = "/Users/danny/mymp3folder/"
with open(f'{folder}tracks_metadata.csv', mode='w') as track_file:
track_writer = csv.writer(track_file, delimiter=',', quotechar='"', quoting=csv.QUOTE_ALL)
track_writer.writerow(['file', 'artist', 'track', 'album', 'genre'])