# NOT RUN {
get_records("oai:oai.datacite.org:32255")
ids <- c("oai:oai.datacite.org:32255", "oai:oai.datacite.org:32325")
(res <- get_records(ids))
lapply(res, "[[", "header")
lapply(res, "[[", "metadata")
do.call(rbind, lapply(res, "[[", "header"))
do.call(rbind, lapply(res, "[[", "metadata"))
# Get raw text
get_records("oai:oai.datacite.org:32255", as = "raw")
# from arxiv.org
get_records("oai:arXiv.org:0704.0001", url = "http://export.arxiv.org/oai2")
# GBIF - http://www.gbif.org
get_records(
c("816f4734-6b49-41ab-8a1d-1b21e6b5486d",
"95e3042f-f48d-4a04-8251-f755bebeced6"),
url = "http://api.gbif.org/v1/oai-pmh/registry")
# oai_datacite
get_records(ids="oai:zenodo.org:159890", prefix="oai_datacite",
url = "https://zenodo.org/oai2d")
get_records(ids="oai:oai.datacite.org:32255", prefix="oai_datacite")
# }
Run the code above in your browser using DataCamp Workspace