better audio example

This commit is contained in:
Paul Lamere 2016-12-31 07:49:19 -05:00
parent 789e30fd4a
commit 5be0ba4d94

View File

@ -24,5 +24,10 @@ if len(sys.argv) > 1:
start = time.time() start = time.time()
features = sp.audio_features(tids) features = sp.audio_features(tids)
delta = time.time() - start 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,)) print ("features retrieved in %.2f seconds" % (delta,))