A function for retrieving a specific publication. Because these are formatted very differently in the API,
the returning object is the raw XML document, best manipulated with node extraction functions
such as rvest::html_elements() or xml2::xml_find_all().
Arguments
- publicationid
Character string, or a vector of strings, indicating the id of the publication to retrieve
- good_manners
Numeric. Seconds delay between calls when making multiple calls to the same function. Note that the Stortinget API is limited to 100 calls per minute (see https://data.stortinget.no/nyhetsoversikt/begrensning-pa-api-kall/).
Details
Note that element and attribute names are case sensitive. Publications from before the 2016-2017 session
use lowercase names (e.g. innlegg, sakid), while later publications use capitalized names
(e.g. Replikk, personID). For debate transcripts, get_speeches returns the speeches as a data frame.