search_song: Search and Harvest Results (more than one possible) for a...

Description Usage Arguments Value See Also Examples

View source: R/songs.R

Description

Obtain information from the Genius API about an artist. There can be several songs returned if the name appears in several songs' title in the API.

Usage

1
search_song(song_title, access_token, n_per_page = 20, verbose = FALSE)

Arguments

song_title

the title of a song (will be searched for)

access_token

the user's (your) access token to the Genius API. For more detail about how to get it, see section Details

n_per_page

the maximum number of songs that shoud be fetch by the API. Defaults to 20.

verbose

If TRUE, then a progression bar of the execution of the function is displayed on the console.

Value

A DataFrame. Columns:

id

the song's ID on the Genius API

title

the song's title

artist

the song's main artist

featured_artists

a list of other artists who contributed to the song, if any

album

the song's album

date

the song's released date

views

the number of views for this song on the Genius website

contributors

the number of contributors to the lyrics of this songs on the Genius website

transcribers

the number of transcribers to the lyrics of this songs on the Genius website

concurrents

the number of people looking at the page whenever the API was last updated

See Also

get_artist, get_song, get_songs, get_songs_from_artist

Examples

1
2
3
4
5
6
7
## Not run: 
library(rGenius)

## Search for the song Europa.
search_song("Europa", access_token=YOUR_TOKEN_GOES_HERE)

## End(Not run)

tylercroberts/rGenius documentation built on May 17, 2019, 8:46 p.m.