mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #207] Song Popularity #105
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#105
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fhopp on GitHub (Aug 5, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/207
Has anyone found a way to get the popularity of a song, /not/ of an /artist/?
The examples that give you info on tracks only deliver metadata such as duration and explicitness, but Spotify's API also provides the title popularity in their track object (https://developer.spotify.com/web-api/get-track/#disqus_thread)
I know that not every song has a popularity rating, but my code below gives me NaNs for /all/ songs (and I am scraping quite a bunch).
Any ideas? Here's the track-portion of the code, thanks!
@kotutuloro commented on GitHub (Aug 24, 2017):
( Not sure if you still need help on this one but: )
Although popularity is usually given in Spotify's track objects, when you're using the endpoint that gets an album's tracks, you're actually getting a simplified version of the track objects which doesn't include popularity.
You can check out what's included in the response at this endpoint. If you need the popularity, you may have to make separate requests for the full track information for each track using its id.
@lyons7 commented on GitHub (Sep 14, 2018):
Hey @fhopp did you ever find a solution to this problem?