Skip to main content

Download General Conference talks as a complete audiobook (m4b) and epub with full transcripts

Project description

gencon-audiobook

CI PyPI version Python versions License: MIT

Download General Conference talks from churchofjesuschrist.org and produce:

  • A chaptered .m4b audiobook — one chapter per talk, with speaker name in the chapter title, cover art, and full metadata
  • An .epub companion — full transcripts, speaker photos, nested session/talk table of contents, and theme-safe CSS (dark mode, sepia, and accessibility modes all work)

Single pip install, no prerequisites beyond Python 3.10+. ffmpeg is located automatically — on your PATH if present, otherwise downloaded once via static-ffmpeg.

Inspired by General-Conference-to-Audiobook.

Disclaimer: This is an unofficial tool not affiliated with The Church of Jesus Christ of Latter-day Saints. General Conference content is copyright Intellectual Reserve, Inc. All rights reserved. This tool downloads content for personal, noncommercial use as permitted by the Church's Terms of Use.


Installation

pip install gencon-audiobook

Python 3.10 or newer is required. All other dependencies, including ffmpeg, are handled automatically.

New to the terminal or Python? See the User Guide for step-by-step instructions.


Usage

# Download the most recent conference (both audiobook and epub)
gencon-audiobook

# Select a specific conference
gencon-audiobook --conference "April 2024"

# Audiobook only (skip epub)
gencon-audiobook --audiobook-only

# EPUB only (skip audiobook and audio download)
gencon-audiobook --epub-only

# Custom output directory
gencon-audiobook --output ~/Books

# Rebuild existing output files
gencon-audiobook --overwrite

# Reduce file size (lower bitrate and sample rate)
gencon-audiobook --bitrate 32k --sample-rate 22050

# Show detailed progress in the terminal
gencon-audiobook --verbose

For the full options reference, file size guide, and platform compatibility notes, see the User Guide.


Output structure

~/gencon-audiobook/
  April 2024 General Conference/
    April 2024 General Conference.m4b    # Chaptered audiobook
    April 2024 General Conference.epub   # Transcript companion
    cover.jpg                            # Conference cover image
    audio/                               # Downloaded MP3 files
    speakers/                            # Speaker photos

Running the tool a second time skips files that already exist. Use --overwrite to rebuild.


Documentation


Development

git clone https://github.com/XeroIP/gencon-audiobook.git
cd gencon-audiobook
pip install -e ".[dev]"

# Run unit tests (no network required)
pytest tests/ --ignore=tests/test_scraper_live.py --ignore=tests/test_integration.py

# Run live smoke tests (hits the real website)
pytest tests/test_scraper_live.py -v -m live

# Run full end-to-end integration test (requires ffmpeg)
pytest tests/test_integration.py -v -m integration

Project layout

src/gencon_audiobook/
  cli.py            Click entry point
  scraper.py        Fetch and parse conference listings and talk pages
  downloader.py     Download MP3s, cover, and speaker photos
  audio.py          Convert MP3 to AAC, assemble chaptered m4b
  epub_builder.py   Build EPUB 3 ZIP from transcripts and images
  ffmpeg_manager.py Locate ffmpeg/ffprobe (PATH first, static-ffmpeg fallback)
  models.py         Conference / Session / Talk dataclasses
  utils.py          sanitize_filename(), validate_url()

tests/
  test_scraper.py         Unit tests against saved HTML fixtures
  test_downloader.py      Mocked HTTP tests
  test_audio.py           Audio pipeline with generated silent fixtures
  test_epub.py            EPUB structure and content validation
  test_cli.py             CLI behavior (all external calls mocked)
  test_utils.py           Filename sanitization and URL validation
  test_scraper_live.py    Live smoke tests (@pytest.mark.live)
  test_integration.py     End-to-end test (@pytest.mark.integration)
  fixtures/               Saved HTML snapshots for scraper unit tests

Contributing

See CONTRIBUTING.md.


Legal

This tool accesses publicly available content using a transparent User-Agent string, respects robots.txt, and applies a rate-limiting delay between requests. It is intended for personal, noncommercial use only.

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

gencon_audiobook-0.1.1.tar.gz (244.5 kB view details)

Uploaded Source

Built Distribution

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

gencon_audiobook-0.1.1-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file gencon_audiobook-0.1.1.tar.gz.

File metadata

  • Download URL: gencon_audiobook-0.1.1.tar.gz
  • Upload date:
  • Size: 244.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gencon_audiobook-0.1.1.tar.gz
Algorithm Hash digest
SHA256 121507c7c676c43446cc127d64f7f43fc5f20e85712f99c2317e341da9efc717
MD5 e0f829deb498534989ecdc99c622251a
BLAKE2b-256 015c9c0765c21cc43fb051e13a0866c80a6a466b847f0c50f305a4ab1c47bae5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gencon_audiobook-0.1.1.tar.gz:

Publisher: publish.yml on XeroIP/gencon-audiobook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gencon_audiobook-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gencon_audiobook-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 094145c864aa9832df0da18bdaebf64e94bc35338de5d66d8d37053b221fbfee
MD5 daa8b8d93e49fb23088508499961b615
BLAKE2b-256 fddc6b49e4e65c60fe4005f9ecc047ec8a2e56ee572e3b023a2df570a422e0f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gencon_audiobook-0.1.1-py3-none-any.whl:

Publisher: publish.yml on XeroIP/gencon-audiobook

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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