genius (version 2.2.0)

genius_url: Use Genius url to retrieve lyrics

Description

This function is used inside of the `genius_lyrics()` function. Given a url to a song on Genius, this function returns a tibble where each row is one line. Pair this function with `gen_song_url()` for easier access to song lyrics.

Usage

genius_url(url, info = "title")

Arguments

url

The url of song lyrics on Genius

info

Default "title", returns the track title. Set to "simple" for only lyrics, "artist" for the lyrics and artist, "features" for song element and the artist of that element, "all" to return artist, track, line, lyric, element, and element artist.

Examples

Run this code
# NOT RUN {
url <- gen_song_url(artist = "Kendrick Lamar", song = "HUMBLE")
genius_url(url)

genius_url("https://genius.com/Head-north-in-the-water-lyrics", info = "all")

# }

Run the code above in your browser using DataCamp Workspace