Script to generate a podcast feed for static sites.
You have 2 directories with yaml files:
- channel.yaml
- items/
- item.yaml
- item2.yaml
- something.yaml
In channel.yaml you define generic data from your podcast's feed:
In all yaml files inside folder items you can write everything you need, one file per chapter. The name of the file is not important but you need the file to end in .yaml.
To work after fill the configuration files simple:
python rssgenerator.py
To install dependencies I suggest to use:
pip install -r requirements.txt
In output folder you have the file podcast.rss, this is your feed and now you can upload where you need it.
Note: Now you can define as many categories as you want, but iTunes uses 3
example of configuration files:
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://misuperchapter.com/chaper1
creator: John Doe
pubDate: Fri, 31 Dec 1999 23:59:59 EST
categories:
- Tehcnology
- News
- Education
description: Chapter description
content: Chapter content
enclosure: https://misuperchapter.com/chaper1.mp3
length: 207310
type: audio/mpeg
itunes:
subtitle: iTunes chapter subtitle
summary: iTunes chapter summary
author: John Doe
duration: 29:14