The University of Sheffield
Browse
1/1
3 files

Exploring features of Spotify playlists: data collection code

software
posted on 2024-05-07, 14:05 authored by Rory Kirk

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

Usage metrics

    Department of Music

    Licence

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC