lizeyan / Zotero-meta-update

Update existing items' metadata by searching in DBLP
MIT License
39 stars 2 forks source link
zotero zotero-api

Zotero-meta-update

CI tests Coverage Status PyPI pyversions

Though Zotero is a great tool for managing references, the metadata of your library items can be wrong for different reasons:

  1. You got the PDF file before it is formally published (e.g., from the authors' personal site or Arxiv), and the metadata is not updated yet.
  2. I found Zotero often cannot retrieve the correct metadata for some papers, especially for those published in conference proceedings.

Examples

example1 example1

Usage

  1. pip install Zotero-meta-update
  2. export ZOTERO_USER_ID={your Zotero user ID} (get it from https://www.zotero.org/settings/keys) or save it in a file named ZOTERO_USER_ID in the working directory.
  3. export ZOTERO_API_KEY={your Zotero API key} (get it from https://www.zotero.org/settings/keys) or save it in a file named ZOTERO_API_KEY in the working directory.
  4. update_zotero_meta --help  # show helps
    update_zotero_meta # run without writting to server
    update_zotero_meta -w  # run with manual update confimration for each changed item
    update_zotero_meta -w --skip-confirmation # changed items are automatically written back to server

Development

Run Tests

 PYTHONPATH=$(realpath .) pytest --cov=. -n 16 ./tests
 coveralls

Build and Upload to PyPi

python setup.py bdist_wheel 
python3 -m twine upload dist/* --skip-exist --verbose

Roadmap