Skip to contents

A wrapper function that first retrieves a user's top 3 artists, then uses this information to generate a list of 10 recommended songs. If the user does not have any top artist information, then genre seeds are used instead. A new playlist is created for the user, which contains the recommended songs. Prints a url link to the new playlist on Spotify.

Usage

get_song_recommendations(playlist_name = NULL, num_songs = 10)

Arguments

playlist_name

The name of the new playlist, a string. Defaults to "Recommended Songs" with the current date.

num_songs

The number of new songs to generate. Must be an integer between 1 and 100 (inclusive).

Examples

if (FALSE) {
get_song_recommendations()
}