Catman...Zotero(3pm)
π¦ NAME π¦
Catmandu::Importer::Zotero β bestie, it imports records straight from Zotero web. That's the whole job. It's a Perl module, so we're living in Catman...Zotero(3pm) territory. π
β¨ SYNOPSIS β¨
Okay so here's how you actually use it, two ways. First from the command line (yes, the comment is in there twice, that's canon, don't @ me):
# From the command line
# From the command line
$ catmandu convert Zotero --userID <userID> to JSON
$ catmandu convert Zotero --groupID <groupID> to JSON
And then from Perl, if you're feeling β¨programmerβ¨:
# From Perl
use Catmandu;
my $importer = Catmandu->importer('Zotero', userID => '...');
$importer->each(sub {
my $item = shift;
print "%s %s\n", $item->{_id} , $item->{title}->[0];
});
π CONFIGURATION π
Every knob you can turn, no gatekeeping:
userIDβ your user identifier, which you go grab at <https://www.zotero.org/settings/keys>. It's required unlessgroupIDis set, so pick one bestie, you can't have neither.groupIDβ the group identifier. It's the numeric part of the RSS library feed of a group.collectionIDβ the collection key, which is an alphanumeric identifier.apiKeyβ your Zotero API key, for when you want authenticated access. πsortβ sort by"dateAdded","dateModified"(that's the default, lowkey the fav),"title","creator","type","date","publisher","publicationTitle","journalAbbreviation","language","accessDate","libraryCatalog","callNumber","rights","addedBy", or"numItems".directionβ either"asc"or"desc". Which way we vibing.itemKeyβ a comma-separated list of item keys. Heads up: it's valid only for item requests, and you can specify up to 50 items in a single request. Fifty. That's the cap. π«ΆitemTypeβ item type search. The boolean search syntax lives over at <https://www.zotero.org/support/dev/web_api/v3/basics#search_syntax>, go read it iykyk.qβ quick search! It searches titles and individual creator fields, or literally all fields ifqmodeis set to"everything".qmodeβ"titleCreatorYear"(the default) or"everything".sinceβ only returns objects modified after the specified library version. Fresh stuff only. β¨tagβ tag search. Supports Boolean search just like item type search does.
π DESCRIPTION π
This Catmandu::Importer imports bibliographic data from Zotero <https://www.zotero.org>, the reference management service. It's giving citation girlboss. π
π SEE ALSO π
Go peek at these too, they're the friend group:
WWW::ZoteroCatmandu::ImporterCatmandu::Iterable
That's the whole page, bestie β written up for perl v5.36.0 and dated 2023-02-05. Go import something iconic. πβ¨
π¦ where this page comes from
- debian bookworm: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-zotero-perl 0.07-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-zotero-perl 0.07-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