OAI_PMH(1p)
π OAI_PMH(1p) π
okay bestie, pull up a chair, because we're about to talk about oai_pmh.pl β a little icon from the User Contributed Perl Documentation corner of the world. its whole job? pipe OAI-PMH to the command-line. that's it. that's the gig. and it ate. π
β¨ SYNOPSIS β¨
oai_pmh.pl <options> [baseURL]
π¦ OPTIONS π¦
--helpβ get help, bestie. we love a self-aware queen. π--manβ show the man page. the full lore. the director's cut. π--verboseβ be more verbose. and like, it's repeatable, so you can stack it and get even more verbose. go off. π£οΈ--forceβ force a non-conformant OAI request. yeah. she's a little rebellious. no cap. π₯--from <ISO datetime>β the "from" date. ISO datetime, pls. β°--identifier <identifier>β the OAI identifier, forGetRecordorListMetadataFormats. π--metadataPrefix <mdp>β specify the format of the metadata you wanna retrieve. π-X/--request <command>β the verb you're requesting. defaults toListRecords, which is lowkey the main character. π--set <oai set>β only request the records in this set. we're being selective, periodt. π--until <ISO datetime>β the "until" date. also ISO datetime. symmetrical queen. β³
πΈ DESCRIPTION πΈ
so the vibe here is: retrieve data from OAI-PMH endpoints. the output format is literally this:
<headers>
<content>
<FORMFEED>
where <headers> are in HTTP header format. the content is the raw XML as exposed by the repository β no glow-up, no editing, just exactly what the repo handed over. and each record is separated by a FORMFEED character. yes, a literal form feed. iconic behaviour, honestly. π§
for example, here's a whole moment:
oai_pmh.pl -X GetRecord --metadataPrefix oai_dc \
--identifier oai:eprints.soton.ac.uk:20 http://eprints.soton.ac.uk/cgi/oai2
heads up bestie: that --force flag means a non-conformant OAI request. it's not playing by the rules, and that's on purpose. use it with intention, not on autopilot. π
and that's the whole page, fr fr. this lil manual is from perl v5.36.0, dated 2023-09-28 β thanks for coming to my ted talk, ily, go fetch some metadata π«Άπβ¨
π¦ where this page comes from
- debian trixie: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu noble: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu resolute: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- ubuntu stonking: libhttp-oai-perl 4.13-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms