<s> from __future__ import print_function <EOL> from spotipy . oauth2 import SpotifyClientCredentials <EOL> import json <EOL> import spotipy <EOL> import time <EOL> import sys <EOL> client_credentials_manager = SpotifyClientCredentials ( ) <EOL> sp = spotipy . Spotify ( client_credentials_manager = client_credentials_manager ) <EOL> sp . trace = True <EOL> if len ( sys . argv ) > <NUM_LIT:1> : <EOL> tids = sys . argv [ <NUM_LIT:1> : ] <EOL> print ( tids ) <EOL> start = time . time ( ) <EOL> features = sp . audio_features ( tids ) <EOL> delta = time . time ( ) - start <EOL> print ( json . dumps ( features , indent = <NUM_LIT:4> ) ) <EOL> print ( "<STR_LIT>" % ( delta , ) ) </s>
