Created
July 13, 2020 16:01
-
-
Save mayhem/a666dc9e358ff22d46f6dad0fa5e55ba to your computer and use it in GitHub Desktop.
This file contains 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/env python3 | |
import sys | |
import json | |
with open(sys.argv[1], "r") as f: | |
data = f.read() | |
for listen in json.loads(data): | |
print("%d,%s,%s" % (listen['listened_at'], listen['track_metadata']['track_name'], listen['track_metadata']['artist_name'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment