Simple podcast downloader

This simple python3 script will fetch all RSS attachments and save them in the format “Podcast Title” – “Episode Name”.mp3

Installing the dependencies:

pip3 install feedparser
import feedparser
import subprocess

feedURL = ''

d = feedparser.parse(feedURL)

for entry in d['entries']:
    episodeName = d['feed']['title'] + " - " + entry['title']
    for link in entry['links']:
        if link['type'] != 'text/html':
            url = link['href']
            subprocess.run(["wget", "-c", "-O", episodeName + ".mp3", url])

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.