This Python script is designed to download and combine podcast episodes from a specified RSS feed into a single MP3 file.
- Python installed on your system.
ffmpeg
must be installed and accessible in your system's PATH. This is crucial for the script to combine audio files.curl
should be installed on your system as it's used for downloading episodes.
-
Clone the Repository or Download the Script: Get the script onto your local machine.
-
Install Required Python Packages: Ensure
requests
is installed. You can install it using pip:pip install requests
-
Find Your Podcast's RSS Feed: Visit Listen Notes, search for your podcast and copy the url of the RSS feed.
-
Run the Script:
python3 episode_combiner.py
-
Follow On-screen Prompts: You'll be asked for the RSS url, and which episodes you'd like to combine; all, the most recent five, or the most recent three.
-
Output: The final combined mp3 will be saved in the same directory as the script. Some podcast apps, like Pocket Casts, grant the ability to upload an mp3 as a new file, and the app will remember your progress through the file, just like an audiobook (or podcast).
Why? In creating DefunktCast, I wondered why there are so few workable solutions for listening to older podcasts. Podcasts are great while they're being published and the feed's getting refreshed, but they require a lot of manual manipulation once a show is complete.
This script is a simple solution for surfacing older (or dead!) podcasts. It may not work as expected with non-podcast RSS feeds, with podcasts exclusive to Spotify, or with files that are not in MP3 format.