Export Bibliography from Command Line
Hello! This might be quite niche, but since I mainly interact with my laptop using the Shell/Terminal Emulator, I was wondering if there was a way to export a bibliography (perhaps even a specific library) from Zotero directly to a .bib file. like so:
$ zotero dump "My Library" > references.bib
or:
$ zotero dump "My Library/path/to/my/project" > references.bib
If not, how could it be implemented?
$ zotero dump "My Library" > references.bib
or:
$ zotero dump "My Library/path/to/my/project" > references.bib
If not, how could it be implemented?
You could do the above relatively easy via web API or you could see if https://github.com/sailist/pyzotero-local works for your purpose
But if you just want auto updating bibtex files, I'd look at the better bibtex add-on for Zotero, which will be much faster and more convenient.
And yes, the connector principally interacts with the local client, so web import works better and has more functionality, including collection selection and tagging
EDIT: Found here https://retorque.re/zotero-better-bibtex/exporting/auto/