Title: | Access to the 'Vagalume' API |
---|---|
Description: | Provides access to the 'Vagalume' API <https://api.vagalume.com.br>. The data extracted is basically lyrics of songs and information about artists/bands. |
Authors: | Bruna Wundervald |
Maintainer: | Bruna Wundervald <[email protected]> |
License: | GPL-2 |
Version: | 0.1.6 |
Built: | 2024-11-19 04:25:35 UTC |
Source: | https://github.com/r-music/vagalumer |
Gives information about the albums of an artist/band.
albums(name, message = TRUE)
albums(name, message = TRUE)
name |
The name of the artist/band. |
message |
Should the function print something if the required data is not found? |
The variables returned by the function are extracted with the Vagalume API.
gente
returns a data.frame with information
about the albums, as the id, name and year of release.
Bruna Wundervald, [email protected].
## Not run: albums("the-beatles") albums("chico-buarque") ## End(Not run)
## Not run: albums("the-beatles") albums("chico-buarque") ## End(Not run)
Gives some information about a given artist/band.
artistInfo(name, message = TRUE)
artistInfo(name, message = TRUE)
name |
The name of the artist/band. |
message |
Should the function print something if the required data is not found? |
The variables returned by the function are extracted with the Vagalume API.
artistInfo
returns a data.frame with the information.
Bruna Wundervald, [email protected].
## Not run: artistInfo("the-beatles") artistInfo("chico-buarque") ## End(Not run)
## Not run: artistInfo("the-beatles") artistInfo("chico-buarque") ## End(Not run)
Gives information about the genre (ou multiple genres) of an artist/band.
genre(name, message = TRUE)
genre(name, message = TRUE)
name |
The name of the artist/band. |
message |
Should the function print something if the required data is not found? |
The variables returned by the function are extracted with the Vagalume API.
genre
returns a data.frame with information
about the genre(s).
Bruna Wundervald, [email protected].
## Not run: genre("the-beatles") genre("chico-buarque") ## End(Not run)
## Not run: genre("the-beatles") genre("chico-buarque") ## End(Not run)
Gives the lyrics text of a song and the translation text, when the language of the song its not Portuguese.
lyrics(identifier, type, artist, key, message = TRUE)
lyrics(identifier, type, artist, key, message = TRUE)
identifier |
The identifier of the song. |
type |
The type of identifier os the song ("name" or "id"). |
artist |
The name of the artist/band. |
key |
The apikey. |
message |
Should the function print something if the required data is not found? |
The variables returned by the function are extracted with the Vagalume API.
lyrics
returns a data.frame with information
about the artist, the song and the texts.
Bruna Wundervald, [email protected].
## Not run: identifier <- "A-Day-In-The-Life" key <- "your token" artist <- "the-beatles" type <- "name" lyrics(identifier, type, artist, key) key <- "your token" identifier <- "3ade68b4gdc96eda3" type <- "id" lyrics(identifier = identifier, type = type, key = key) ## End(Not run)
## Not run: identifier <- "A-Day-In-The-Life" key <- "your token" artist <- "the-beatles" type <- "name" lyrics(identifier, type, artist, key) key <- "your token" identifier <- "3ade68b4gdc96eda3" type <- "id" lyrics(identifier = identifier, type = type, key = key) ## End(Not run)
Gives information about the song names of an specific artist/band.
songNames(name, message = TRUE)
songNames(name, message = TRUE)
name |
The name of the artist/band. |
message |
Should the function print something if the required data is not found? |
The variables returned by the function are extracted with the Vagalume API.
relatedInfo
returns a data.frame with information
about song names.
Bruna Wundervald, [email protected].
## Not run: songNames("the-beatles") songNames("chico-buarque") ## End(Not run)
## Not run: songNames("the-beatles") songNames("chico-buarque") ## End(Not run)
Gives information about the top lyrics (most viewed) about an specific artist/band.
topLyrics(name, message = TRUE)
topLyrics(name, message = TRUE)
name |
The name of the artist/band. |
message |
Should the function print something if the required data is not found? |
The variables returned by the function are extracted with the Vagalume API.
topLyrics
returns a data.frame with information
about the top lyrics.
Bruna Wundervald, [email protected].
## Not run: topLyrics("the-beatles") topLyrics("chico-buarque") ## End(Not run)
## Not run: topLyrics("the-beatles") topLyrics("chico-buarque") ## End(Not run)