-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_playlist_tracks() limit is set pretty low #174
Comments
Documentation pull request or examples are more than welcome. |
I can try... Would be my first pull request tho 😅 Is a tidyverse and purrr centric example okay or should it be base-R? |
Maybe you can write the example here and we'll see if it will be an illustration or an example or something else. Not the entire tidyverse is imported into spotifyr. |
How about this:
|
I could create a Rmarkdown file that uses this approach to find out which tempo or key dominates the playlist. This is btw. the use case I used your package for. |
Hmm tried running this code exactly and I got the following error:
Did you encounter anything similar? |
``Hi @eledroos , Just tried the code again. You are right. Something in the purrr package might have changed. This should work:
|
That worked thanks! Out of curiosity, if I now wanted to get the features of |
to get the audio features you have to use the track id values from the unnested dataframe and plug them into get_track_audio_features() purrr is great for this... |
According to the documentation the limit parameter can range from 1 to 100.
This is a bit low since many playlists have several hundred entries. Is there a way to increase this or is this a limitation of the spotify API?
Thanks!
EDIT: I just realized how the pagination system of the spotify API works, see: https://developer.spotify.com/documentation/web-api/
Its pretty straight forward to parse through the whole playlist by increasing the offset parameter as long as there non-null list returns. The issue can be closed :-). But maybe adding an example in the documentation would be helpful for future users.
Btw.: thanks for building this package! Awesome work!
The text was updated successfully, but these errors were encountered: