Skip to content

Instantly share code, notes, and snippets.

@mjlavin80
Last active December 5, 2016 17:23
Show Gist options
  • Save mjlavin80/87e326d301b2b159296e193cfbb845b0 to your computer and use it in GitHub Desktop.
Save mjlavin80/87e326d301b2b159296e193cfbb845b0 to your computer and use it in GitHub Desktop.
Parse a public Zotero collection in Python
from pyzotero import zotero
# See https://github.com/urschrei/pyzotero for documentation
library_id = "Your library id"
api_key= "Your API key"
collection_id = "Your collection ID"
library_type = "group" #or user
zot = zotero.Zotero(library_id, library_type, api_key)
#records will be a list of dictionaries. Each dictionary will be a Zotero record from the collection.
records = zot.everything(zot.collection_items(collection_id))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment