Last active
December 5, 2016 17:23
-
-
Save mjlavin80/87e326d301b2b159296e193cfbb845b0 to your computer and use it in GitHub Desktop.
Parse a public Zotero collection in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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