get_song_from_artists: Get Songs for an Artist.

Description Usage Arguments Value See Also Examples

View source: R/songs.R

Description

This function returns information from the Genius API about the top songs from an artist, given this artist name.

Usage

1
2
get_song_from_artists(artist_name, access_token, n_per_page = 20,
  verbose = FALSE)

Arguments

artist_name

the name of an artist (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, search_song, get_song, get_songs

Examples

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

## Look up the band Metallica:
get_songs_from_artist("Metallica", access_token=YOUR_TOKEN_GOES_HERE)

## End(Not run)

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