get_metadata: Retrieve podcast metadata

View source: R/get_metadata.R

get_metadataR Documentation

Retrieve podcast metadata

Description

Retrieves podcast metadata (i.e. date, title, mp3 duration and URL). Information will be saved in a CSV file. Each time this function is called only new episodes will be added.

Usage

get_metadata(podcast, radio = "franceinter", path = ".", na_rm = TRUE)

Arguments

podcast

a character of length 1. The name of the podcast.

radio

a character of length 1. The name of the radio. Must one among franceinter (default), franceinfo, francebleu, franceculture, francemusique, fip, or mouv.

path

a character of length 1. The folder to save metadata as CSV.

na_rm

a logical. If TRUE (default) remove episodes with incomplete information.

Value

A four-columns data frame with:

  • date: the date of the episode;

  • title: the title of the episode;

  • duration: the duration of the episode (in seconds);

  • file_url: the URL of the mp3.

See Also

create_m3u()

Examples

## Not run: 
## Retrieve episodes metadata ----

tab <- get_metadata("un-ete-avec-homere", radio = "franceinter")

## End(Not run)

ahasverus/franceinter documentation built on Oct. 15, 2024, 1:56 a.m.