get_songs: Get multiple songs.

Description Usage Arguments Value Examples

View source: R/songs.R

Description

harvest information on multiple songs.

Usage

1
get_songs(song_ids, access_token, verbose = TRUE)

Arguments

access_token

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

verbose

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

res

a res (result) DataFrame. Can be empty (i.e., will be populated here).

itera

song ids to iterate over and harvest

Value

a DataFrame populated with the output of get_song() for all songs in song_ids. 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

Examples

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

## Multiple song IDs:
get_songs(c(3846, 9869, 2273), access_token=YOUR_TOKEN_GOES_HERE)

## End(Not run)

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