atp_get_episodes: Retrieve ATP episodes

View source: R/atp.R

atp_get_episodesR Documentation

Retrieve ATP episodes

Description

Retrieve ATP episodes

Usage

atp_get_episodes(page_limit = NULL, cache = TRUE)

Arguments

page_limit

Number of pages to scrape, from newest to oldest episode. Page 1 contains the 5 most recent episodes, and subsequent pages contain 50 episodes per page. As of December 2020, there are 10 pages total. Pass NULL (default) to get all pages.

cache

(logical(1)) Set to FALSE to disable caching.

Value

A tibble.

Examples

## Not run: 
# Only the first page with the newest 5 episodes
atp_new <- atp_get_episodes(page_limit = 1)

# The latest and then 50 more
atp_latest <- atp_get_episodes(page_limit = 2)

# Get all episodes (use wisely)
atp_full <- atp_get_episodes()

## End(Not run)

jemus42/poddr documentation built on April 5, 2025, 2:57 a.m.