تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

pyzotero

بواسطة killgfat

Web & Frontend Development
1.5kالتنزيلات وفق ما يذكره clawskills.sh
3النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Python scripts for Zotero - supports both local API and online Web API, with ZOTERO_LOCAL environment variable.

الوصف

ما الذي تفعله هذه المهارة

Python scripts wrapping the pyzotero library to interact with Zotero reference libraries. Supports search, full-text search, item retrieval, adding items individually or in bulk from JSON, and full collection management. Works with both a locally running Zotero instance and the Zotero Web API.

Gives command-line and script access to Zotero without opening the desktop app, making library management automatable and composable with other tools.

متى تستخدمها

  • Search a research library by keyword or phrase
  • Find papers containing specific terms inside PDFs
  • Add journal articles with metadata from the command line
  • Organize references into collections and subcollections
  • Export search results as JSON for scripting pipelines

مثال على سير العمل

الإدخال

User asks: find all papers about 'attention mechanisms' including PDF content, then add results to a collection

الوكيل
  1. 1

    Run full-text search: python3 scripts/zotero_tool.py search -q "attention mechanisms" --fulltext --json

  2. 2

    Parse returned item keys from JSON output

  3. 3

    List existing collections to find the target collection key: python3 scripts/zotero_tool.py listcollections

  4. 4

    Add each matching item to the collection: python3 scripts/zotero_tool.py collection-add-item ITEM_KEY -c COLLECTION_KEY

الإخراج

All matching papers are added to the specified Zotero collection

المتطلبات

  • Zotero 7 or later installed and running (for local mode); enable local API under Settings > Advanced
  • ZOTERO_USER_ID environment variable (online mode only)
  • ZOTERO_API_KEY from zotero.org/settings/keys (online mode only)

التثبيت

clawhub install killgfat/pyzotero

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط