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.
OMNIVORE_APIKEY=<key> uvx omnivook
By default it will generate an epub with the last 24 hours articles in the same directory.
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/apiMAIL_CONNECTION
: The SMTP connection URL in the format:smtp://user:password@server:port
. If this is set, you don't need to provideSERVER
,USERNAME
,PASSWORD
,SERVER_PORT
, orSECURE
.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 to465
).SECURE
: Whether the SMTP connection is secure (optional, defaults totrue
).
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>
.epubEPUB_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
Built Distribution
File details
Details for the file omnivook-0.1.2.tar.gz
.
File metadata
- Download URL: omnivook-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d7fc9767b205553ced9c2ea18c15cba10a9027d0c1aaad774509d8b80002653 |
|
MD5 | 96301d4e3d85b8db9698fa28dbfb8ec2 |
|
BLAKE2b-256 | aa3dc8f9d8510abe37d44874ed980c3aefce700d25ec35c7ed3cb8557ff8f2e8 |
File details
Details for the file omnivook-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: omnivook-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449e2b266728c7b85612c17f27232a6b790e6e4fe57fa672b2db02a2178c5fc2 |
|
MD5 | a82c24db6bc51ea04f2157a705a87fba |
|
BLAKE2b-256 | 47ed330b65d7c07ac98a56cad2aa6a236ea66918f1947f8144e060b0779fa3e1 |