code: def get_metadata(file_name, client_id, client_secret):
      
  
      song_name = improve_name(file_name)  # Remove useless words from title
      client_credentials_manager = SpotifyClientCredentials(client_id, client_secret)
  
      spotify = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
      results = spotify.search(song_name, limit=1)
  
      results = results['tracks']['items'][0]  # Find top result
      album = results['album']['name']  # Parse json dictionary
      artist = results['album']['artists'][0]['name']
      song_title = results['name']
      album_art = results['album']['images'][0]['url']
  
      return artist, album, song_title, album_art
docs: Tries finding metadata through Spotify