Archive all episodes from your favorite podcasts
Project description
Podcast Archiver
A fast and simple command line client to archive all episodes from your favorite podcasts.
Podcast Archiver takes the feed URLs of your favorite podcasts and downloads all available episodes for you—even those "hidden" in paged feeds. You'll end up with a complete archive of your shows. The archiver also supports updating an existing archive, so that it lends itself to be set up as a cronjob.
⚠️ Podcast Archiver v1.0 completely changes the available command line options uses a new format for naming files (see changing the filename format below). Using it on an existing pre-v1.0 folder structure will re-download all episodes unless you use an equivalent template. ⚠️
Setup
Install via pipx:
pipx install podcast-archiver
Install via brew:
brew install janw/tap/podcast-archiver
Or use it via Docker:
docker run --tty --rm ghcr.io/janw/podcast-archiver --help
Usage
Run podcast-archiver --help
for details on how to use it:
Example invocation
podcast-archiver -d ~/Music/Podcasts \
-f http://logbuch-netzpolitik.de/feed/m4a \
-f http://raumzeit-podcast.de/feed/m4a/ \
-f https://feeds.lagedernation.org/feeds/ldn-mp3.xml
This way, you can easily add and remove feeds to the list and let the archiver fetch the newest episodes for example by adding it to your crontab.
Changing the filename format
Podcast Archiver has a --filename-template
option that allows you to change the particular naming scheme of the archive. The default value for --filename-template
. is shown in podcast-archiver --help
, as well as all the available variables. The basic ones are:
- Episode:
episode.title
,episode.subtitle
,episode.author
,episode.published_time
,episode.original_filename
- Podcast:
show.title
,show.subtitle
,show.author
,show.language
Note here that episode.published_time
is a Python-native datetime, so its exact format can be adjusted further a la {episode.published_time:%Y-%m-%d %H%M%S}
using strftime-placeholders. By default it uses %Y-%m-%d
(e.g. 2024-12-31).
Examples
-
More precise published time
{show.title}/{episode.published_time:%Y-%m-%d %H%M%S %Z} - {episode.title}.{ext}
Results in
…/That Show/2023-03-12 123456 UTC - Some Episode.mp3
-
Using the original filename (roughly equivalent to pre-1.0
--subdirs
){show.title}/{episode.original_filename}
Results in
…/That Show/ts001-episodefilename.mp3
-
Using the original filename (roughly equivalent to pre-1.0
--subdirs
+--date-prefix
){show.title}/{episode.published_time} {episode.original_filename}
Results in
…/That Show/2023-03-12 ts001-episodefilename.mp3
Using a config file
Command line arguments can be replaced with entries in a YAML configuration file. An example config can be generated with
podcast-archiver --config-generate > config.yaml
After modifying the settings to your liking, podcast-archiver
can be run with
podcast-archiver --config config.yaml
Alternatively (for example, if you're running podcast-archiver
in Docker), you may point it to the config file using the PODCAST_ARCHIVER_CONFIG=path/to/config.yaml
environment variable.
Using environment variables
Some settings of Podcast Archiver are available as environment variables, too. Check podcast-archiver --help
for options with env var: …
next to them.
Project details
Release history Release notifications | RSS feed
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 podcast_archiver-1.3.2.tar.gz
.
File metadata
- Download URL: podcast_archiver-1.3.2.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d363f60214e398bcf6182ea445cbd98debd7dd34ea728f5893afcacebf3c54 |
|
MD5 | 88d0324f015007a64676eec571efc473 |
|
BLAKE2b-256 | 699bfcd9db5a8c25060d29e69c2f227d05a88769806dcf0a89dfc43e089e0dac |
Provenance
File details
Details for the file podcast_archiver-1.3.2-py3-none-any.whl
.
File metadata
- Download URL: podcast_archiver-1.3.2-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4af1535325beee2584d68f1746e4526607ab3e8d65b16f67e278c63549d5d8 |
|
MD5 | 51527136ba742905b49d21f95c3b6a55 |
|
BLAKE2b-256 | b9beeabdb09b15000eaeaf1afa4bc14aedded69088f21b5d00fa8dce92a278af |