2012-01-13 15:37:25 +00:00
|
|
|
from zoteroconf import user_id, user_key
|
|
|
|
|
|
|
|
# http://pyzotero.readthedocs.org/en/latest/index.html
|
|
|
|
|
|
|
|
from pyzotero import zotero
|
|
|
|
zot = zotero.Zotero(user_id, user_key)
|
2012-01-13 17:20:54 +00:00
|
|
|
items = zot.top()
|
2012-01-13 15:37:25 +00:00
|
|
|
for item in items:
|
2012-01-13 17:20:54 +00:00
|
|
|
try:
|
2012-01-13 17:36:40 +00:00
|
|
|
print 'Author: %s | Title: %s' % (item['creators'][0]['lastName'] if item['creators'] else '', item['title'])
|
2012-01-13 17:20:54 +00:00
|
|
|
except Exception, e:
|
|
|
|
print "Error: %s " % (e)
|