Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

work with data & lyrics from Genius

License

NotificationsYou must be signed in to change notification settings

ewenme/geniusr

Repository files navigation

Lifecycle: maturingCRAN statusDLsTravis build StatusAppVeyor build statusCodecov test coverage

Overview

Tools for working with theGenius (FKARap Genius) API.

Install

Get the latest stable version from CRAN…

install.packages("geniusr")

…or install the development version from Github (recommended).

remotes::install_github("ewenme/geniusr")

Authenticate

  1. Create a Genius API client
  2. Generate a client access token from yourAPI Clientspage
  3. Set your credentials in the System Environment variableGENIUS_API_TOKEN by calling thegenius_token() function andentering your Genius Client Access Token when prompted.

Use

Start withthebasics!

How many times did ’Ye say “good morning”, on the track “Good Morning”?

library(geniusr)library(dplyr)library(tidytext)# get lyricsget_lyrics_search(artist_name="Kanye West",song_title="Good Morning") %>%# get lyric bigrams  unnest_tokens(bigram,line,token="ngrams",n=2) %>%# look for good morning  filter(bigram=="good morning") %>%# count bigram frequency  nrow()#> [1] 18

Other

  • Get citation information for geniusr in R withcitation(package = 'geniusr')
  • Please note that the geniusr project is released with aContributorCode ofConduct. Bycontributing to this project, you agree to abide by its terms.

Related work

  • thegenius packagespecialises in lyrics retrieval from Genius.

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp