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.
|
#!/usr/bin/env python3 |
|
|
|
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))
|
|
|