mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-04 23:17:48 +00:00
better audio example
This commit is contained in:
parent
789e30fd4a
commit
5be0ba4d94
@ -24,5 +24,10 @@ if len(sys.argv) > 1:
|
||||
start = time.time()
|
||||
features = sp.audio_features(tids)
|
||||
delta = time.time() - start
|
||||
print(json.dumps(features, indent=4))
|
||||
for feature in features:
|
||||
print(json.dumps(feature, indent=4))
|
||||
print()
|
||||
analysis = sp._get(feature['analysis_url'])
|
||||
print(json.dumps(analysis, indent=4))
|
||||
print()
|
||||
print ("features retrieved in %.2f seconds" % (delta,))
|
||||
|
Loading…
Reference in New Issue
Block a user