Created
April 14, 2019 13:49
-
-
Save bjohas/46231fa0a476c054617b91a1f12fc4d6 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import sys | |
import logging | |
import json | |
from pyzotero import zotero | |
def zotero_searches(api_key, library_id, library_type): | |
zot = zotero.Zotero(library_id, library_type, api_key) | |
items = zot.searches() | |
print(json.dumps(items)) | |
def main(args): | |
zotero_searches(sys.argv[1], sys.argv[2], "group") | |
def run(): | |
main(sys.argv[1:]) | |
if __name__ == "__main__": | |
run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment