Catman...Inspire(3pm)
π NAME π
Catmandu::Importer::Inspire β okay bestie, it's the package that imports Inspire data from http://inspirehep.net/. That's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
Here's the vibe, copy it exactly, no cap:
use Catmandu::Importer::Inspire;
my %attrs = (
id => '1203476',
fmt => 'endnote',
);
my $importer = Catmandu::Importer::Inspire->new(%attrs);
my $n = $importer->each(sub {
my $hashref = $_[0];
# ...
});
Likeβ¦ you make the importer, you hand her some %attrs, and then you each your way through every record like the main character you are π¦
π CONFIGURATION π
These are the attributes you can pass in, and they all eat, honestly:
idβ grab a record by its Inspire ID. Drop the ID, get the record. Simple as πdoiβ grab a record by its DOI, straight out of the Inspire database. Different key, same slay.queryβ go feral and get results by an arbitrary query. You're the boss of this one πfmtβ the format she delivers in. Default is'endnote'. The other formats are'nlm','marc'and'dc'. Choose wisely, they're all iconic in their own way β¨limitβ the maximum number of records. Default is25. So if you don't say anything, you're getting 25 and that's the whole story π«Ά
ngl bestie,limitdefaults to25, so if you wanted everything, you gotta say so out loud. She's not a mind reader π
π SEE ALSO π
Go be nosy, these are all worth a peek:
Catmandu::IterableCatmandu::ArXivCatmandu::CrossRef
And that's the page, periodt π
This lil' beauty is Catman...Inspire(3pm) from the User Contributed Perl Documentation, running on perl v5.36.0 and dated 2023-02-04. Go forth and import, queen πβ¨
π¦ where this page comes from
- debian bookworm: libcatmandu-inspire-perl 0.300-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-inspire-perl 0.300-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-inspire-perl 0.300-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-inspire-perl 0.300-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-inspire-perl 0.300-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