Ghosty-Tongue / python-podcast-download

A simple python script to download all media from a podcast feed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Podcast Downloader

Note:

Error handling and this readme.md was provided by chatgpt. and hardcoded modifications aswell many other common features were worked and modified by me non ai.

Description

A Python script to download media from a podcast XML feed.

Usage

Execute the script and provide the RSS feed URL when prompted.

python podcast_downloader.py

Feed Requirements

	<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/">
  	<channel>
  		...nodes...
		<item>
			...nodes...
			<enclosure url="http://theFileToDownload.extension"/>
		</item>
		<item>
			...nodes...
			<enclosure url="http://theFileToDownload.extension"/>
		</item>
	</channel>
	</rss>

Features

  • Downloads podcast episodes based on the provided RSS feed.
  • Renames files to the title of the item + original file extension.
  • Allows setting start and end parameters to limit the range of downloaded podcasts.

Prerequisites

Make sure you have the required Python libraries installed:

pip install requests

How to Use

  1. Run the script: python podcast_downloader.py.
  2. Input the RSS feed URL when prompted. Optionally, set start and end episode parameters.
  3. The script will download podcast episodes, displaying a progress bar for each download.

License

This script is licensed under the GNU v3.0 License.

Credits

  • Original Bash script by Andrew Morton (GitHub Repository).
  • Wowfunhappy's Modified Bash script (Gist).
  • Modified to Python by GhostyTongue, adapting Wowfunhappy's changes.

Changelog

  • vForked (12/13/2024):
    • TODO: Create option to rename files to the title of the item + original file extension. Completed.
      • Files are now renamed to the title of the podcast episode along with the original file extension.
    • TODO: Create start and end parameters to limit the range of downloaded podcasts. Completed.
      • Users can set start and end parameters to download a specific range of episodes.

About

A simple python script to download all media from a podcast feed


Languages

Language:Python 100.0%