From 5be0ba4d94d18bf586474de350eaa9527d98251e Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Sat, 31 Dec 2016 07:49:19 -0500 Subject: [PATCH] better audio example --- examples/audio_features.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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,))