Skip to content

Instantly share code, notes, and snippets.

@sjstebbins
Created August 22, 2016 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjstebbins/991c50869ccf76a71407e3bebab78173 to your computer and use it in GitHub Desktop.
Save sjstebbins/991c50869ccf76a71407e3bebab78173 to your computer and use it in GitHub Desktop.
Muse- get collected song attributes
# API: get collected song attributes
attributes_api_endpoint = SPOTIFY_API_URL + "/audio-features?ids=" + ",".join(seed_data['song_ids'])
attributes_response = requests.get(attributes_api_endpoint, headers=GLOBAL['authorization_header'])
seed_data['attributes'] = json.loads(attributes_response.text)['audio_features']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment