I googled your error and it seems the API endpoint corresponding to spotipy.Spotify.audio_features()
has been deprecated (EDIT: announced November 27, 2024).
Note about the deprecation in Spotify's developer feed:
https://developer.spotify.com/documentation/web-api/reference/get-audio-features
Info about all related changes to the web API with other stuff that has become deprecated:
https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api
The link I found the info through: