get_show_episodes is not working, potential fix
Opened this issue · 1 comments
sydneyDeMets commented
I'm not great at programming so I'm sorry if I sound dumb.
That said, it seems like the problem is related to the scopes function. When I altered the link in the scopes function to this:
scopes <- function() {
xml2::read_html("https://developer.spotify.com/documentation/web-api/concepts/scopes") %>%
rvest::html_elements("code") %>% rvest::html_text() %>%
unique()
}
get_show_episodes started working. It's possible this issue is related to Spotify's recent revamping of their API.
Hopefully y'all can fix this.
Thank you!
aaelony-aeg commented
I haven't used this, but perhaps making the url an arg (with the default that worked for you) might be a good path forward.
scopes <- function(api_url = "https://developer.spotify.com/documentation/web-api/concepts/scopes") {
xml2::read_html(api_url) %>%
rvest::html_elements("code") %>% rvest::html_text() %>%
unique()
}