gutenfetchen
Verb, pseudo-German. gutenfetchen (/ˈɡuːtənˌfɛtʃən/) "to do the good fetching." From guten (good) + fetchen (to fetch), conjugated in the infinitive as if it were a proper German verb. Because downloading public-domain literature should feel orderly, efficient, and vaguely Teutonic.
Download plain-text e-books from Project Gutenberg with a single command.
Why gutenfetchen?
Most Gutenberg tools (Gutenberg, gutenbergpy) require building a local metadata database before you can do anything - a process that can take hours. gutenfetchen skips all of that.
- Zero setup - queries the Gutendex API directly, no local database required
- Smart deduplication - filters out duplicate editions, keeps the highest-quality version
- Clean output - strips Project Gutenberg boilerplate headers/footers by default
- Prefers UTF-8 - automatically selects the best plain-text encoding available
- Dry-run mode - preview results before downloading anything
Install
pip install gutenfetchen
Usage
Search by title:
gutenfetchen "tale of two cities"
Search by author:
gutenfetchen --author "joseph conrad"
Combine author + title filter:
gutenfetchen "heart" --author "joseph conrad"
Download random e-texts:
gutenfetchen --random 5
Preview without downloading:
gutenfetchen --author "jane austen" --dry-run
Limit results and set output directory:
gutenfetchen --author "mark twain" --n 3 -o ./my_texts/
Keep Gutenberg boilerplate (skip cleaning):
gutenfetchen "moby dick" --no-clean
Clean existing files on disk:
gutenfetchen clean ./gutenberg_texts/
gutenfetchen clean file1.txt file2.txt
gutenfetchen clean --dry-run ./gutenberg_texts/
The clean subcommand runs the same boilerplate-stripping pipeline used during download. It is idempotent — running it on already-clean texts leaves them unchanged.
Options
positional:
title Search by title (e.g., 'tale of two cities')
options:
--author NAME Search by author name (e.g., 'joseph conrad')
--random N Download N random e-texts
--n N Maximum number of texts to download
-o, --output-dir DIR Output directory (default: ./gutenberg_texts/)
--dry-run List matching books without downloading
--no-clean Skip stripping Project Gutenberg boilerplate
Metadata
Release files for gutenfetchen 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gutenfetchen-1.2.1.tar.gz | 29.3 kB | Without provenance | Details for gutenfetchen-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gutenfetchen-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for gutenfetchen-1.2.1-py3-none-any.whl |
Total release size: 72.1 kB
Release files / gutenfetchen-1.2.1.tar.gz
| Download URL | gutenfetchen-1.2.1.tar.gz |
|---|---|
| Size | 29.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d54cadc9464e81b609ab33ff211d4847f88f5628da8b31b46b61a5ccb04f21ab
|
|
BLAKE2b-256 checksum How to use checksums |
2a1b04609c73189121133da6b1a193dff6a8febf07b56f327205a95621a107b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.11.9 Darwin/24.6.0
|
Release files / gutenfetchen-1.2.1-py3-none-any.whl
| Download URL | gutenfetchen-1.2.1-py3-none-any.whl |
|---|---|
| Size | 42.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49ac4a2aab2cb14e940ca877ae3e79bd68894bab1e743ce45fe7dac8772e21cb
|
|
BLAKE2b-256 checksum How to use checksums |
6b6a3f05dc47af613ae4bcbc20303a6763736b9756f22ae91d03a9f97ce33be4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.11.9 Darwin/24.6.0
|
Security for gutenfetchen 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.