mirror of
https://github.com/Xevion/spotify-explicit.git
synced 2025-12-06 01:16:25 -06:00
9 lines
288 B
Python
9 lines
288 B
Python
import json
|
|
|
|
def main():
|
|
saved_response = json.load(open('saved_tracks.json', 'r'))
|
|
for track in saved_response['items']:
|
|
print('{} by {}'.format(
|
|
track['track']['name'],
|
|
' & '.join(artist['name'] for artist in track['track']['artists'])
|
|
)) |