diff --git a/examples/audio_features.py b/examples/audio_features.py index d956c37..da366c4 100644 --- a/examples/audio_features.py +++ b/examples/audio_features.py @@ -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,))