Exploring features of Spotify playlists: data collection code
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.
More details on the Spotify API and can be found in the Spotify documentation:
https://developer.spotify.com/documentation/web-api/reference/get-audio-features
https://developer.spotify.com/documentation/web-api/reference/get-audio-analysis
And the Spotipy Python library:
https://spotipy.readthedocs.io/en/2.22.1/
Funding
DTP 2018-19 University of Sheffield
Engineering and Physical Sciences Research Council
Find out more...History
Ethics
- There is no personal data or any that requires ethical approval
Policy
- The data complies with the institution and funders' policies on access and sharing
Sharing and access restrictions
- The uploaded data can be shared openly
Data description
- The file formats are open or commonly used
Methodology, headings and units
- There is a file including methodology, headings and units, such as a readme.txt