Learn R Programming

frheritage (version 0.1.0)

ids_download: Download and parse heritage metadata from a URL

Description

This internal helper performs an HTTP GET request to the given URL (typically generated by ids_url_build()) and parses the RSS XML response into a structured data.frame.

Usage

ids_download(url, timeout = 60)

Value

A data.frame with columns:

id

Numeric identifier extracted from the GUID.

title

Record title as published in the service.

guid

Full GUID (unique resource identifier).

Returns an empty data.frame if the request fails or no items are found.

Arguments

url

Character. The complete request URL.

timeout

Numeric. Request timeout in seconds (default = 60).