Skip to main content

A tool to generate ebooks from Omnivore articles

Project description

Omnivook, omnivore articles as a (daily) book 📚

Automates the process of generating an eBook from Omnivore articles and sending it via email to your Kindle device.

Usage

The easiest way of running the latest version is using uv.

For a one-time run:

OMNIVORE_APIKEY=<key> uvx omnivook

To install it permanently, use

uv tool install omnivook

To upgrade it:

uv tool upgrade omnivook

Then simply run

OMNIVORE_APIKEY=<key> omnivook

By default it will generate an epub with the articles since the day before.

Pass --help to see all the options.

Alternatively, you can install omnivook with pipx, pip, etc.

Automated daily ebook via email ⏰: Setup Github Action

Clone this repo and configure the following GitHub Secrets in your repository:

  • OMNIVORE_APIKEY: Get yours at https://omnivore.app/settings/api
  • MAIL_CONNECTION: The SMTP connection URL in the format: smtp://user:password@server:port. If this is set, you don't need to provide SERVER, USERNAME, PASSWORD, SERVER_PORT, or SECURE.
  • MAIL_FROM: The email address from which the eBook will be sent.
  • MAIL_TO: The Kindle email address where the eBook will be delivered.

Alternatively, if MAIL_CONNECTION is not set, you can configure the following secrets individually:

  • SERVER: The SMTP server address.
  • USERNAME: The SMTP username.
  • PASSWORD: The SMTP password.
  • SERVER_PORT: The SMTP server port (optional, defaults to 465).
  • SECURE: Whether the SMTP connection is secure (optional, defaults to true).

This setup relies on the action-send-mail GitHub Action for sending emails.

You can overwrite these environment variables if you want to change the dynamic setup of:

  • PROJECT_NAME = a.k.a the file name of the epub. Default to omnivook_since_<DATE>to<DATE>.epub
  • EPUB_TITLE: a.k.a the title of the document. Default to omnivook since <DATE> to <DATE>
  • EPUB_AUTHORS: a.k.a List of site names of all the articles. Default set to the repo owner

Manual Trigger 🔧

You can manually trigger the workflow from the GitHub Actions tab. When triggering manually, you have the following options:

  • SINCE: Specify the start date to filter articles (format YYYY-MM-DD). If not provided, defaults to the previous day.
  • archive: A boolean flag (true or false) that determines whether to archive the articles after processing. Defaults to true.
  • label: (optional) Specify a label to filter articles.

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

omnivook-0.1.6.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

omnivook-0.1.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file omnivook-0.1.6.tar.gz.

File metadata

  • Download URL: omnivook-0.1.6.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for omnivook-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e67c4353b16486680529ac3375e8449c32d7b99de6ba1e36868363eca9de1d4f
MD5 5d34c75f1b82ff49428fdb7f4bc11c91
BLAKE2b-256 c1ceec550b50c039c8721e8f6e826ff9cc5c9fbb02a7349ec01b86d76b234ce8

See more details on using hashes here.

File details

Details for the file omnivook-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: omnivook-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for omnivook-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 436d1527efe3df252349b180e5ac8e979038fe4f344c81e8b48f2bac9e1efbd7
MD5 787038f35cacc4592c3b603e21b1f91f
BLAKE2b-256 27065714849b8b572265d7696fdcce453e08ee1bdd08a2fff3e02ad9ca0b6c9d

See more details on using hashes here.

Supported by

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