Closed e-harsley closed 4 years ago
If you save the artist object:
with open('saved_file.json') as f:
data = json.load(f)
for song in data['songs']:
links = song['media']
if links:
for media in links:
if media['provider'] == 'youtube':
print(media['url'])
If you save the song object:
with open('saved_file.json') as f:
data = json.load(f)
links = data['media']
if links:
for media in links:
if media['provider'] == 'youtube':
print(media['url'])
Hi, How do i get the youtube url from the song media