Skip to content

Instantly share code, notes, and snippets.

View aquaresima's full-sized avatar

Alessio Quaresima aquaresima

  • Nijmegen, the Netherlands
View GitHub Profile
@aquaresima
aquaresima / zotero_tags_lowercase.py
Created June 19, 2023 11:36
Script to make all zotero tags lowercase
# The script below will update ALL your tags except those in the skip_tags list. Use it with caution.
# It also splits all tags that have more than a word. It saves both the old tag and the new one.
# That is, you have ("my tag word"), and you get ("my","tag", "word", "my tag word").
#The API_KEY and LIBRARY_ID are private. See the documentation.api_key = "xxxxx"
# Documentation: https://pyzotero.readthedocs.io/en/latest/
# Original thread: https://forums.zotero.org/discussion/92493/any-way-to-switch-all-tags-to-all-lower-case-or-ignore-case-in-tags
library_id = 0000000
library_type = "user"
from pyzotero import zotero