if (FALSE) {
# Download Regent Honeyeater records with multimedia attached
galah_call() |>
galah_identify("Regent Honeyeater") |>
galah_filter(year == 2011) |>
atlas_media()
# Download multimedia
galah_call() |>
galah_identify("Regent Honeyeater") |>
galah_filter(year == 2011) |>
atlas_media() |>
collect_media(path = "folder/your-directory")
# Specify a single media type to download
galah_call() |>
galah_identify("Eolophus Roseicapilla") |>
galah_filter(multimedia == "Sound") |>
atlas_media()
# It's good to check how many records have media files before downloading
galah_call() |>
galah_filter(multimedia == c("Image", "Sound", "Video")) |>
galah_group_by(multimedia) |>
atlas_counts()
}
Run the code above in your browser using DataLab