RetrieveSongs: Featuring network from artists songs

Description Usage Arguments Value Examples

View source: R/RetrieveSongs.R

Description

Create a network of featuring collaboration between artists. The recuperation can be pretty long if there is a lot of song. For instance, to get all the lyrics from 10 artists it would take approximatly 1 hour

Usage

1
RetrieveSongs(x, y, feat_exclude = T)

Arguments

x

A dataset containing at least 3 columns : artist_id, song_name, and song_id (you can use the output of GetSongsArtistName or GetSongsArtistID). If you don't, make sure your x input is a dataframe containing at least those 3 columns

y

A list of Artists IDS from which you want to scrap all the lyrics

feat_exclude

if False, the function will get all the songs of the artist even the featuring with other artists. Default is set to True (for personnal purpose) but it could be pertinent to set it to false

Value

a dataframes with all the lyrics, with columns about artists, song etc...

Examples

1
2
3
4
5
6
7
## Not run: 

## all the lyrics of multiple artists :
lyrics<-RetreiveSongs(corpus,list_of_artists_id,feat_exclude=F)


## End(Not run)

epmrio/AutomatedGeniusR documentation built on Nov. 2, 2020, 12:17 a.m.