Utility for migrating a podcast feed to Markdown files compatible with the Hugo Castanet theme
Project description
feed2castanet
Utility for migrating a podcast feed to Markdown files compatible with the Hugo Castanet theme
Installation
pip
Install locally:
$ pip3 install -e .
Or install over PyPi:
$ pip3 install feed2castanet
Manual
Install Python requirements:
$ pip3 install -u -r requirements.txt
Usage
Create documents per episode in a podcast feed:
$ feed2castanet -u https://<podcast-url>/feed/mp3 -t episode.md.j2
Override episode hosts:
$ feed2castanet -u https://<podcast-url>/feed/mp3 -t episode.md.j2 --hosts paula --hosts max
Templating
Episode documents are prepared using a Jinja2 template - see episode.md.j2 for an example.
Several variables contain episode information:
| Key | Description |
|---|---|
description |
Episode description |
description_html |
Episode description in HTML, often used for shownotes |
alias |
Path of former episode URL (e.g. /e123-my-episode of https://<podcast-url>/e123-my-episode) |
itunes_author |
Episode author(s) |
published |
Date of publication |
number |
Episode number |
episode_art_url |
Episode artwork URL |
guid |
Episode globally unique ID |
hosts |
Episode hosts (optional) |
podcast_duration |
Total episode duration (e.g. 01:33:07) |
podcast_file |
Audio file URL |
podcast_bytes |
File size in bytes |
title |
Episode title |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feed2castanet-0.5.0.tar.gz.
File metadata
- Download URL: feed2castanet-0.5.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85e07e837a3f9e5ef1fec248ba3420d6814ef54db2637e2abae5ef9af5a33211
|
|
| MD5 |
755dfec91792c92b2415457e0f4d270a
|
|
| BLAKE2b-256 |
697c3875afb6607af7f72f4e5d4aa2b37b812fa4ace28d1b088125bee5b9290d
|
File details
Details for the file feed2castanet-0.5.0-py3-none-any.whl.
File metadata
- Download URL: feed2castanet-0.5.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c69537c5db53945ab0253dbaa7fa407687c2cfa0a108595bc77a80101440332f
|
|
| MD5 |
af8e5959ba216c1819b9b597e0c7e8fb
|
|
| BLAKE2b-256 |
5b1c61b8f7e9a4ec0c2de3a2a23077646e5f038aaefd5347fbd6b83b7eeeb3e9
|