download_scrobbles: download_scrobbles

View source: R/get_pages_api.R

download_scrobblesR Documentation

download_scrobbles

Description

download_scrobbles

Usage

download_scrobbles(
  username = get_lastfm_credentials("username"),
  api_key = get_lastfm_credentials("key"),
  max_per_page = 1000,
  max_pages = NULL
)

Arguments

username

Your last.fm account username

api_key

Your last.fm account api key

max_per_page

Controls the maximum number of songs on each page of the API. A lower number here will lead to a higher number total pages. Defaults to 1000. Mainly useful for testing.

max_pages

Controls the maximum number of pages to return from the API. By default it will fetch everything. Mainly useful for testing.

Value

A dataframe of songs and associated metadata

Examples

## Not run: 
download_scrobbles(username = "your_username", api_key = "your_api_key")

## End(Not run)

condwanaland/scrobbler documentation built on Oct. 25, 2023, 2:55 p.m.