powered by
This function gets the lyrics of the desired song.
get_genius_song_lyrics(song_id, output = "tibble", url = NULL, access_token = Sys.getenv("GENIUS_API_TOKEN"))
Genius Song ID
'tibble' or 'text'. Default: tibble.
If for some reason the function cannot find the url to download the letter, you can use a genius url to download it.
Genius Web API token. Defaults to Sys.getenv('GENIUS_API_TOKEN').
Returns a tibble or a character vector with the lyrics
To use this function, you need to first use 'search_genius_song' to get the song ID.
# NOT RUN { get_genius_song_lyrics('55882', output = 'text') # }
Run the code above in your browser using DataLab