oai_pmh.pl - pipe OAI-PMH to the command-line
oai_pmh.pl <options> [baseURL]
Be more verbose (repeatable).
Force a non-conformant OAI request.
OAI identifier to GetRecord or ListMetadataFormats.
Specify format of metadata to retrieve.
Verb to request, defaults to ListRecords.
Request only those records in a set.
Retrieve data from OAI-PMH endpoints. The output format is:
<headers> <content> <FORMFEED>
Where <headers> are in HTTP header format. Content will be the raw XML as exposed by the repository. Each record is separated by a FORMFEED character.
For example:
oai_pmh.pl -X GetRecord --metadataPrefix oai_dc \ --identifier oai:eprints.soton.ac.uk:20 http://eprints.soton.ac.uk/cgi/oai2
To install HTTP::OAI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::OAI
CPAN shell
perl -MCPAN -e shell install HTTP::OAI
For more information on module installation, please visit the detailed CPAN module installation guide.