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.
- Clone this repository
- Install the requirements:
pip install -r requirements.txt
- 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.
- Run the script:
streamlit run main.py
- Visit
localhost:8501
in your browser
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.