genius_url: Use Genius url to retrieve lyrics

Description Usage Arguments Examples

View source: R/genius_url.R

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

1
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

1
2
3
4
5
#' genius_url("https://genius.com/Head-north-in-the-water-lyrics", info = "all")

# url <- gen_song_url(artist = "Kendrick Lamar", song = "HUMBLE")

# genius_url(url)

JosiahParry/geniusR documentation built on Nov. 5, 2021, 11:09 a.m.