Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Interacts with Zotero libraries via the pyzotero Python client to manage items, collections, tags, attachments, and exports.
88% 100%+12 ptsof test cases passed
Passed 25 of 25 test cases with the skill, and 22 of 25 without it.
3 of 3 safety checks passed
Not used yet
Pyzotero raises ZoteroError subclasses for API errors. Import from pyzotero.zotero_errors:
from pyzotero import zotero_errors
Common exceptions:
| Exception | Cause |
|---|---|
UserNotAuthorised | Invalid or missing API key |
HTTPError | Generic HTTP error |
ParamNotPassed | Required parameter missing |
CallDoesNotExist | Invalid API method for library type |
ResourceNotFound | Item/collection key not found |
Conflict | Version conflict (optimistic locking) |
PreConditionFailed | If-Unmodified-Since-Version check failed |
TooManyItems | Batch exceeds 50-item limit |
TooManyRequests | API rate limit exceeded |
InvalidItemFields | Item dict contains unknown fields |
from pyzotero import Zotero
from pyzotero import zotero_errors
zot = Zotero('123456', 'user', 'APIKEY')
try:
item = zot.item('BADKEY')
except zotero_errors.ResourceNotFound:
print('Item not found')
except zotero_errors.UserNotAuthorised:
print('Invalid API key')
except Exception as e:
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.