Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr4398 :: Command line fun: downloading a podcast

Kevie goes through how to download from an RSS feed from the command

<< First, < Previous, , Latest >>

Thumbnail of Kevie
Hosted by Kevie on Wednesday, 2025-06-11 is flagged as Clean and is released under a CC-BY-SA license.
CLI, command line, RSS, Linux, download. 2.

Listen in ogg, opus, or mp3 format. Play now:

Duration: 00:10:47
Download the transcription and subtitles.

general.

Kevie, from the TuxJam podcast, continues his look at audio tools on the command line; this time focusing on acquiring audio files from an RSS feed.

Save the latest file from a feed:

wget `curl RSS_FEED | grep -o 'https*://[^"]*FILE_EXTENSION' | head -1`

To get the latest episode of TuxJam

wget `curl https://tuxjam.otherside.network/feed/podcast/ | grep -o 'https*://[^"]*ogg' | head -1`

However if you want the files from the whole feed:

wget `curl RSS_FEED | grep -Eo 'https*://[^"]*FILE_EXTENSION' | sort -u | xargs`

To get every episode of TuxJam:

wget `curl https://tuxjam.otherside.network/feed/podcast/ | grep -Eo 'https*://[^"]*ogg' | sort -u | xargs`

If you wish to specify the directory to save the file in then use -P /directory after wget. To download the TuxJam feed and place the files in a directory called Podcasts in your home folder you would use:

wget -P ~/Podcasts `curl https://tuxjam.otherside.network/feed/podcast/ | grep -Eo 'https*://[^"]*ogg' | sort -u | xargs`

For more in this mini-series of audio command line tools then see:


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2025-06-11 21:02:05 by Henrik Hemrin

Tempted to have fun

Thanks Kevie,
I am tempted to have fun and try myself! And to read the steps in detail to learn what each step does.
The command Ctrl c you mentioned is indeed a very useful one.

Comment #2 posted on 2025-06-22 15:44:17 by Ken Fallon

Personal message to redhat (nprfan)

Hi redhat (nprfan),

Dave and I had a look at your comment, as it was essentially a script that produced links to a website. While we think it's not malicious, the code as written would not run as it's missing some variables.

Can you please record a show about it as we both were impressed by your though process in this one.

Ken and Dave.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?