get_discography_lyrics: Get Discography Lyrics

Description Usage Arguments Details Value Author(s) Examples

View source: R/get_discography_lyrics.R

Description

This function gets the lyrics of the desired song.

Usage

1
2
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

1
2
3
4
## Not run: 
get_discography_lyrics('343657', cores = 2)

## End(Not run)

rgenius documentation built on July 1, 2020, 10:28 p.m.