zotero-snapshot-to-pdf

Create PDFs from your Zotero website snapshots

https://github.com/valerius21/zotero-snapshot-to-pdf

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Create PDFs from your Zotero website snapshots

Basic Info
  • Host: GitHub
  • Owner: valerius21
  • License: agpl-3.0
  • Language: Python
  • Default Branch: main
  • Size: 25.4 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License Citation

README.md

You can find an up-to-date rewrite here: https://github.com/valerius21/zotero-website-snapshot-converter

Zotero Website Snapshot to PDF

This is the complementary repository to my blog post.

Disclaimer and development state

Remember to back-up your Zotero Folder. This script is not in a production-ready state, and has only been in use on MacOS and Linux.

Use it at your own risk!

Currently, it queries only the first 100 sources with snapshots and uploads duplicates, if the script has been run before.

Prerequisites

  1. Back-up your Zotero folder
  2. Copy over config.example.toml to config.toml and update it with the corresponding data
  3. Create a Virtual Environment (optional) and activate it
  4. Run pip install -r requirements.txt
  5. Ensure, Google Chrome is installed and available on the path given in the configuration file

Running the Script

Run python convert_pdfs.py

Drop a citation

If you have used this repository and found it helpful, I would be delighted, if you would consider a citation. Thanks!

To Do

  • [ ] use a config parameter to add a caching directory
  • [ ] figure out a system specific Chrome resolver
  • [ ] ensure chrome is installed on the system
  • [ ] install it as a service, re-run on library changes
  • [ ] create tmpdir using python libraries
  • [ ] skip, if there is already a PDF present

Owner

  • Name: Valerius Mattfeld
  • Login: valerius21
  • Kind: user
  • Location: Göttingen, Germany
  • Company: @elegal-ev @ksb-intax

full-stack developer / computer science and law graduate

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Mattfeld"
  given-names: "Valerius"
  orcid: "https://orcid.org/0000-0003-0263-0332"
title: "Zotero-snapshot-to-pdf"
version: 1.0.0
date-released: 2024-04-28
url: "https://github.com/valerius21/zotero-snapshot-to-pdf"

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • anyio ==4.3.0
  • bibtexparser ==1.4.1
  • cachier ==3.0.0
  • certifi ==2024.2.2
  • cffi ==1.16.0
  • charset-normalizer ==3.3.2
  • clr-loader ==0.2.6
  • feedparser ==6.0.11
  • idna ==3.7
  • loguru ==0.7.2
  • pip ==24.0
  • portalocker ==2.8.2
  • pychromepdf ==1.1
  • pycparser ==2.22
  • pyparsing ==3.1.2
  • pythonnet ==3.0.3
  • pytz ==2024.1
  • pyzotero ==1.5.18
  • requests ==2.31.0
  • setuptools ==69.5.1
  • sgmllib3k ==1.0.0
  • sniffio ==1.3.1
  • urllib3 ==2.2.1
  • watchdog ==4.0.0
  • watchfiles ==0.21.0