Catman...klight(3pm)
β¨ NAME β¨
Catmandu::Importer::Blacklight β bestie, it imports records from a Blacklight catalog π (yes, this is that Catman...klight(3pm) page you were looking for, she's right here, hi)
πΈ SYNOPSIS πΈ
Okay so like, two ways to do this. Pick your fighter:
# From the command line
$ catmandu convert Blacklight --url http://lib.ugent.be/catalog -q Schopenhauer
# In perl
use Catmandu::Importer::Blacklight;
my $importer = Catmandu::Importer::Blacklight->new(
url => "...",
q => "..."
);
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});
Like, that's it. That's the whole vibe. β¨
π CONFIGURATION π
Two things you literally have to give her, no skips, no "I'll do it later":
urlβ the Blacklight catalog Base URL. Required, bestie. She will not run without it. π«Άqβ the Query string to search with. Also Required. Same energy. No query, no records, periodt. π
π DESCRIPTION π
So every Catmandu::Importer is also a Catmandu::Iterable, which means all its methods are inherited β you get the whole iterable toolbox for free, iykyk. π
BUT. And this is the important part so lean in:
The Catmandu::Importer::Blacklight methods are not idempotent. Blacklight feeds can only be read once. Like, one shot, one read, that's it. Don't come back expecting a second pass, because she is NOT doing encores. ππ
π SEE ALSO π
Go be nosy, she loves that for you:
<http://projectblacklight.org/>Catmandu::ImporterCatmandu::Iterable
Okay that's the whole page!! π¦ This little gem lives in the User Contributed Perl Documentation, running on perl v5.36.0, and it was last touched on 2023-02-02. Mwah, bye bestie πβ¨
π¦ where this page comes from
- debian bookworm: libcatmandu-blacklight-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-blacklight-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-blacklight-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-blacklight-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-blacklight-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms