Script to generate a podcast feed for static sites.
- Python 3.8+
# Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtYou have 2 directories with yaml files:
channel.yaml— podcast-level metadataitems/— one.yamlfile per episodeitem.yamlitem2.yamlsomething.yaml
Fill in the configuration files, then run:
python rssgenerator.pyThe generated feed will be written to output/podcast.rss.
Note: iTunes uses up to 3 categories, but you can define as many as you want.
title: A Ratos Podcast
feed_link: https://mysuperpodcast.com/podcast.rss
web_link: https://mysuperpodcast.com
description: Description of my podcast
language: es
itunes:
subtitle: iTunes subtitle for my podcast
summary: iTunes podcast summary
author: John Doe
explicit: clean
image: http://mysuperpodcast.com/image1600x1600.jpg
type: episodic
owner:
name: John Doe
email: podcast@mysuperpodcast.com
categories:
- Technology
- News
- Education
copyright: John Doe
rating: TV-Y
location: Madrid, Spain
frequency: weekly
subscribe:
feed: https://mysuperpodcast.com/podcast.rss
itunes:
tunein:
spotify:title: My super chapter
link: https://mysuperpodcast.com/chapter1
creator: John Doe
pubDate: Fri, 31 Dec 1999 23:59:59 EST
categories:
- Technology
- News
- Education
description: Chapter description
content: Chapter content
enclosure: https://mysuperpodcast.com/chapter1.mp3
length: 207310
type: audio/mpeg
itunes:
subtitle: iTunes chapter subtitle
summary: iTunes chapter summary
author: John Doe
duration: 29:14