<p dir="ltr">This repository contains Python code used to extract musical features data from the Spotify Data Catalogue using the Spotipy Python library. Data was sought for songs in Spotify playlists corresponded to search terms related to sleep, relaxing, and energising. Two scripts collected data on musical features and timbre using the Audio Features and Audio Analysis tools, respectively, in the Spotify API. </p><p dir="ltr">More details on the Spotify API and can be found in the Spotify documentation:</p><p dir="ltr"><a href="https://developer.spotify.com/documentation/web-api/reference/get-audio-features" target="_blank">https://developer.spotify.com/documentation/web-api/reference/get-audio-features</a></p><p dir="ltr"><a href="https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis" target="_blank">https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis</a></p><p dir="ltr">And the Spotipy Python library:</p><p dir="ltr">https://spotipy.readthedocs.io/en/2.22.1/ </p>
Funding
DTP 2018-19 University of Sheffield
Engineering and Physical Sciences Research Council