@nondef/ts-oai-pmh
v0.0.2
Published
OAI-PMH harvester module for nodejs - typescript refactor
Downloads
10
Maintainers
Readme
OAI PMH Typescript
A TypeScript module for the Open Archives Initiative Protocol for Metadata Harvesting (OAI-PMH 2.0). Use this module if you want to harvest metadata from OAI-PMH providers, e.g., arxiv.
Installation
npm install oai-pmh
Basic usage
As typescript library
const oaiPmh = new OaiPmh(
"http://bibsys-network.alma.exlibrisgroup.com/view/oai/47BIBSYS_NETWORK/request" as unknown as URL,
);
const options = {
metadataPrefix: "marc21",
set: "oai_komplett",
from: new Date("2020-01-01"),
until: new Date("2020-01-03"),
};
const res = [];
for await (const identifier of oaiPmh.listIdentifiers(options)) {
res.push(identifier);
}
For details see the documentation
Through CLI
to be done