A lightweight Python sandbox for running Calibre news recipes.
Project description
calibre-recipe-runner
A lightweight Python sandbox for running Calibre news recipes.
The Calibre community has curated a treasure trove of over a thousand well-maintained parsing recipes for news outlets around the world. These recipes are typically designed to run within Calibre itself — but what if you want to use them elsewhere?
calibre-recipe-runner is a lightweight sandbox that lets you execute Calibre news recipes outside of the Calibre environment. No installation of Calibre is required.
This tool:
- Dynamically loads
.recipefiles - Emulates essential Calibre modules
- Extracts article feeds
Example
Run the Le Monde recipe from the Calibre collection:
calibre-recipe-runner le_monde
Output:
https://www.lemonde.fr/article1.html
https://www.lemonde.fr/article2.html
Run any other recipe:
calibre-recipe-runner path/to/news.recipe
Install
As a system-wide binary
uv tool install calibre-recipe-runner`
or
pipx install calibre-recipe-runner
As Python package
pip install calibre-recipe-runner
Before first run & for occasional updates
Requires curl and jq.
calibre-recipe-runner --update
The recipe collection is stored in ~/.local/share/calibre-recipe-runner/recipes.
Limitations
- Most Calibre modules are stubbed or partially emulated.
- Recipes requiring authentication or complex browser automation may not work out of the box. PRs welcome.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calibre_recipe_runner-0.1.0.tar.gz.
File metadata
- Download URL: calibre_recipe_runner-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bffbe9ae875a3c05da271eb843b909e04b2bdc4a295fde659cee30794d2dd313
|
|
| MD5 |
2c2c6221543aeea2f1ca917b0ffa3014
|
|
| BLAKE2b-256 |
e62464ddcee2fc08fc065c849c3a7306aa83fdb233d4dc2a661e014d06084aa3
|
File details
Details for the file calibre_recipe_runner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: calibre_recipe_runner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f83053348ebf65c5ae103741b1b25e87f1f2c8bc2057ffe7b7a3c4bcd0af84d3
|
|
| MD5 |
5d9d3ff4bf33d017930dc9ce10bc870f
|
|
| BLAKE2b-256 |
4cf041f4b98b2e63ae3cc0fa11a9c7e70c9d48c0e2607800b198a72ca2af5432
|