[GH-ISSUE #780] I want to get metadata of a song #479

Closed
opened 2026-02-27 23:22:51 +03:00 by kerem · 3 comments
Owner

Originally created by @Impre-visible on GitHub (Feb 5, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/780

hi guys, i saw how to search with spotipy, but when i search i have a giant intermingling of lists and dictionaries, i want to get the artiste name, the song name, the album name and its all. There is my code

album = Playlist("https://www.youtube.com/playlist?list=PLSBWvYm8t6uYhMJ-zCi2TSOoh-jeUdsAL")

sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials(client_id=cid, client_secret=secret))
for video in album.videos:
    search = sp.search(q=video.title)
print(search)

if u can help me :D
ps : i send u what my code print pastebin

Originally created by @Impre-visible on GitHub (Feb 5, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/780 hi guys, i saw how to search with spotipy, but when i search i have a giant intermingling of lists and dictionaries, i want to get the artiste name, the song name, the album name and its all. There is my code ```py album = Playlist("https://www.youtube.com/playlist?list=PLSBWvYm8t6uYhMJ-zCi2TSOoh-jeUdsAL") sp = spotipy.Spotify(client_credentials_manager=SpotifyClientCredentials(client_id=cid, client_secret=secret)) for video in album.videos: search = sp.search(q=video.title) print(search) ``` if u can help me :D ps : i send u what my code print [pastebin](https://pastebin.com/uJACsDt4)
kerem 2026-02-27 23:22:51 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@Impre-visible commented on GitHub (Feb 5, 2022):

my link is a youtube playlist, beacause i get all the title of a playlist youtube, but i want the first result of the search

<!-- gh-comment-id:1030703059 --> @Impre-visible commented on GitHub (Feb 5, 2022): my link is a youtube playlist, beacause i get all the title of a playlist youtube, but i want the first result of the search
Author
Owner

@Impre-visible commented on GitHub (Feb 5, 2022):

i want the script to find the Luv Resval name, in the key name, i tried :

name = search['tracks']['items'][0]['name']

but gave me not the good name, it return "Jusqu'à l'aurore", not what i want

<!-- gh-comment-id:1030705633 --> @Impre-visible commented on GitHub (Feb 5, 2022): i want the script to find the Luv Resval name, in the key name, i tried : ```py name = search['tracks']['items'][0]['name'] ``` but gave me not the good name, it return "Jusqu'à l'aurore", not what i want
Author
Owner

@Impre-visible commented on GitHub (Feb 6, 2022):

ok i find how to do that

<!-- gh-comment-id:1030800857 --> @Impre-visible commented on GitHub (Feb 6, 2022): ok i find how to do that
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#479
No description provided.