Code Monkey home page Code Monkey logo

cli-zotero's Introduction

Command-line client for Zotero

Right now, only export to BibTeX is implemented.

This utility is using the Pyzotero library.

usage: cli-zotero.py [-h] [--key API-KEY] (--group ID | --user ID | --id NAME)
                     (--list-collections [TITLE] | --collection-to-bibtex COLLECTION-ID)
                     [--dump FILENAME] [--limit N]

Command-line client for Zotero

optional arguments:
  -h, --help            show this help message and exit
  --key API-KEY         Zotero API key (https://www.zotero.org/settings/keys)
                        Or specify in [core] of configuration file.
  --group ID            Group ID (https://www.zotero.org/groups/)
  --user ID             User ID (https://www.zotero.org/settings/keys)
  --id NAME             Identity specified in [identities] in configuration
                        file.
  --list-collections [TITLE]
                        List your collections (title partial match)
  --collection-to-bibtex COLLECTION-ID
                        Export given collection to BibTeX
  --dump FILENAME       Dump retrieved data through pprint to FILENAME
  --limit N             Set internal limit of the queries

Users can create configuration file ~/.config/cli-zotero.conf to store their keys. The file uses typical INI format and can look like this:

[core]
key = your-zotero-key-here

[identities]
work = group 123456
me = user 98765

With this file in place, dumping a collection to BibTeX is rather straightforward.

# List collections matching given title
./cli-zotero.py --id work --list-collections search-term-here
# Notice the six-character long code and copy it to the second command
./cli-zotero.py --id work --collection-to-bibtex collection-id-here >refs.bib

cli-zotero's People

Contributors

vhotspur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.