/zotero-website-snapshot-converter

Create PDFs from your Zotero website snapshots

Primary LanguagePythonMIT LicenseMIT

Zotero Website Snapshot Converter

This is a simple script that converts a Zotero website snapshot into a PDF file.

It starts up a headless browser, loads the snapshot, and then saves the page as a PDF file.

Because I like GUIs, I've also included a simple streamlit front-end that allows you to interact with the script.

Before you start, make sure you backup your Zotero library.

Installation

  1. Clone this repository
  2. Install the requirements: pip install -r requirements.txt
  3. Install the required system dependencies:
    • playwright install-deps && playwright install chromium
    • If you're on Windows, I'm sorry. Ironically, Microsoft - the maintainers of said library - decided not to support Playwright on Windows with our required capabilities.
    • You can still run the script, without the GUI, but you'll need to tweak the main.py file.
  4. Run the script: streamlit run main.py
  5. Visit localhost:8501 in your browser

Usage

The GUI is pretty self-explanatory.

This version is a bit more capable than my previous version, which I've blogged about here. Feel free to take a look at the blog post for more information on how to get started.