List of love songs on Last.fm, which I'm slowly chipping away in a new streaming service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
292 B

3 months ago
import csv
import random
songs = []
with open('lovedtracks-jbiason-1710855614.csv') as source:
reader = csv.reader(source)
for line in reader:
artist = line[2]
song = line[6]
songs.append((artist, song))
song = random.choice(songs)
print(' - '.join(song))