mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
16 lines
342 B
Python
16 lines
342 B
Python
|
|
import spotipy
|
|
|
|
|
|
lz_uri = 'spotify:artist:36QJpDe2go2KgaRleHCDTp'
|
|
|
|
spotify = spotipy.Spotify()
|
|
|
|
results = spotify.artist_top_tracks(lz_uri)
|
|
|
|
for track in results['tracks'][:10]:
|
|
print('track : ' + track['name'])
|
|
print('audio : ' + track['preview_url'])
|
|
print('cover art: ' + track['album']['images'][0]['url'])
|
|
print()
|