Closed sdaza closed 3 years ago
It looks like this is an error in the documentation. One way to do this would be to retrieve all collections for a given collection key:
ac = zot.all_collections(collid='NFWFUHKR')
, then
[zot.collection_items(c['key']) for c in ac]
Which will give you a list of lists, each containing the collection items (this includes sub-items such as attachments etc – you'd need to call collection_items_top
if you only wanted top-level items in each collection) in each subcollection (including 'NFWFUHKR')
thanks, yes, I am doing that: list of lists!
Thanks for your nice package.
I am trying to get all the items from a collection (including subcollections). According to the documentation:
But, when I use
items = zot.collection_items("NFWFUHKR")
,items
is empty. According to the Zotero API documentation:<userOrGroupPrefix>/collections/<collectionKey>/items | Items within a specific collection in the library