본문으로 건너뛰기
Skillpedia
자동화51k · #3549

pyzotero

하는 일

이 프로그램은 Zotero에서 서지 참고문헌을 관리하도록 돕습니다. 항목, 컬렉션, 첨부 파일을 자동으로 검색하고, 추가하고, 수정하거나 삭제할 수 있습니다.

사용하는 경우

  • ✓많은 과학 논문을 정리해야 할 때.
  • ✓학술 작업을 위해 인용을 내보낼 때.
  • ✓PDF를 참고문헌에 업로드하는 것을 자동화하고 싶을 때.

스킬 링크

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pyzotero/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pyzotero/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Zotero 라이브러리에서 인공지능에 관한 모든 논문을 검색해 BibTeX로 내보내 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

자격 증명을 사용해 Zotero 계정에 연결합니다. 그다음 참고문헌을 읽고, 쓰고, 수정하는 명령을 내릴 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Pyzotero

Pyzotero is a Python wrapper for the Zotero API v3. Use it to programmatically manage Zotero libraries: read items and collections, create and update references, upload attachments, manage tags, and export citations.

Reviewed target: pyzotero 1.15.2 on 2026-09-30. Checked official SDK documentation, release source, and Web API contracts. Examples requiring a private library or running Zotero are illustrative; read-only public probes and isolated SDK contract checks do not establish authenticated write success.

Authentication Setup

For remote private reads and writes, get credentials from https://www.zotero.org/settings/keys:

Store credentials in environment variables or a .env file:

ZOTERO_LIBRARY_ID=your_user_id
ZOTERO_API_KEY=your_api_key
ZOTERO_LIBRARY_TYPE=user  # or "group"

See references/authentication.md for full setup details.

Installation

uv add "pyzotero==1.15.2"    # Reviewed Web API client
uv add "pyzotero[cli]==1.15.2"  # + local CLI
uv add "pyzotero[mcp]==1.15.2"  # + MCP server

Quick Start

import os
from pyzotero import Zotero

zot = Zotero(
    library_id=os.environ['ZOTERO_LIBRARY_ID'],
    library_type=os.environ.get('ZOTERO_LIBRARY_TYPE', 'user'),
    api_key=os.environ['ZOTERO_API_KEY'],
)

# Retrieve top-level items (returns 100 by default)
items = zot.top(limit=10)
for item in items:
    print(item['data'].get('title', ''), item['data']['itemType'])

# Search by keyword
results = zot.items(q='machine learning', limit=20)

# Retrieve all items (use everything() for complete results)
all_items = zot.everything(zot.items())

Core Concepts

  • A Zotero instance is bound to a single library (user or group). All methods operate on that library.
  • Item data lives in item['data']. Access fields like item['data']['title'], item['data']['creators'].
  • Pyzotero returns 100 items by default (API default is 25). Use zot.everything(zot.items()) to get all items.
  • Return types are method-specific: update_item() reports Boolean success, while create_items() returns per-item creation status. Inspect its failed, successful (full saved objects), success (legacy keys), and unchanged mappings and retain the input-index-to-key mapping. A truthy response dictionary does not establish that every item was created; report partial failures and retry only the failed inputs after reconciliation. See the write-method contracts.

Reference Files

File Contents
references/authentication.md Credentials, library types, local mode
references/read-api.md Retrieving items, collections, tags, groups
references/search-params.md Filtering, sorting, search parameters
references/write-api.md Creating, updating, deleting items
references/collections.md Collection CRUD operations
references/tags.md Tag access and management
references/files-attachments.md File download and attachment uploads
references/exports.md BibTeX, CSL-JSON, bibliography export
references/pagination.md follow(), everything(), generators
references/full-text.md Full-text content indexing and access
references/saved-searches.md Saved search management
references/cli.md Command-line interface (local Zotero)
references/mcp.md MCP server for LLM clients (local Zotero)
references/error-handling.md Errors and exception handling

Common Patterns

Fetch and modify an item

item = zot.item('ITEMKEY')
item['data']['title'] = 'New Title'
zot.update_item(item)

…

자주 묻는 질문

Zotero를 설치해야 하나요?

네, 로컬 버전을 사용하려면 Zotero를 설치하고 설정해야 합니다.

프로그램은 어떤 라이브러리를 사용할지 어떻게 알 수 있나요?

올바르게 연결하려면 사용자 ID, API 키, 라이브러리 유형(사용자 또는 그룹)을 제공해야 합니다.

참고문헌에 PDF 파일을 추가할 수 있나요?

네, 이 프로그램은 PDF 파일 같은 첨부 파일을 Zotero 라이브러리의 항목에 업로드할 수 있도록 합니다.

상세 정보

작성자의 원본 설명

Manages Zotero reference libraries using the pyzotero Python client: retrieves, creates, updates, and deletes items, collections, tags, and attachments via the Zotero Web API v3 or local API. Applies when working with Zotero libraries programmatically, managing bibliographic references, exporting citations, searching library contents, uploading PDF attachments, or building research automation work

repo: K-Dense-AI/scientific-agent-skills

인기도

GitHub 스타
51k
순위
#3549
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬