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.

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

Examples

if (FALSE) {
## Retrieve episodes metadata ----

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