Skip to main content

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 .recipe files
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

calibre_recipe_runner-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calibre_recipe_runner-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for calibre_recipe_runner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bffbe9ae875a3c05da271eb843b909e04b2bdc4a295fde659cee30794d2dd313
MD5 2c2c6221543aeea2f1ca917b0ffa3014
BLAKE2b-256 e62464ddcee2fc08fc065c849c3a7306aa83fdb233d4dc2a661e014d06084aa3

See more details on using hashes here.

File details

Details for the file calibre_recipe_runner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for calibre_recipe_runner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f83053348ebf65c5ae103741b1b25e87f1f2c8bc2057ffe7b7a3c4bcd0af84d3
MD5 5d9d3ff4bf33d017930dc9ce10bc870f
BLAKE2b-256 4cf041f4b98b2e63ae3cc0fa11a9c7e70c9d48c0e2607800b198a72ca2af5432

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page