get_discography_lyrics {rgenius} | R Documentation |
Get Discography Lyrics
Description
This function gets the lyrics of the desired song.
Usage
get_discography_lyrics(artist_id, cores = detectCores(),
access_token = Sys.getenv("GENIUS_API_TOKEN"))
Arguments
artist_id |
Genius Artist ID |
cores |
Number of cores to use for parallel computing. Default: parallel::detectCores() |
access_token |
Genius Web API token. Defaults to Sys.getenv('GENIUS_API_TOKEN'). |
Details
To use this function, you need to first use 'search_genius_artist' to get the artist ID. This function uses parallel processing to increase performance. Use the different cores of your device to achieve this, so there may be noticeable differences in performance depending on the device.
Value
Returns a named list containing all the lyrics of the artist's songs.
Author(s)
Alberto AlmuiƱa
Examples
## Not run:
get_discography_lyrics('343657', cores = 2)
## End(Not run)
[Package rgenius version 0.1.0 Index]