Download podcasts automatically with a cronjob for podget

“Podget” is a command-line app for downloading podcasts in Linux.

This tutorial will show you the steps to make podget run every X amount of hours,so that it will download podcasts automatically as it finds them.

Enter these commands in the Terminal:

If you use Ubuntu, you can install podget with this command:

sudo apt-get install podget

Enter your password and then press enter.

Configure podget with these commands:

cd ~/.podget

To configure podget you must edit these files: podgetrc and serverlist

You can edit these with your favorite text editor, I use “nano” but you might want to use gedit.

gedit podgetrc

For reference, here is my podgetrc file:

Now you need to set up the podcasts to be used with podget

gedit serverlist

You need to enter the podcasts rss feed and then the category of the podcasts, followed by the name:

For example: linux Coder Radio

That line grabs the podcast from the coderradiomp3 feed on feedburner, and puts the podcast in a self-titled folder in the “linux” category.

Categories can not have spaces, titles can.

Once you are done your serverlist should look something like this:

That’s it for setting up podget, but now we need to make it download our podcasts automatically:

Type this in the command line:

crontab -e

Navigate to the bottom of the file using your arrow keys and press enter to create a new line:

Put the following command at the end of the file:

0 */2 * * * /usr/bin/podget > ~/logs/podgetlog

You can change the “2” to how many hours you would like the command to run, for now it every is 2 hours.

That is all! Your computer will now check for podcasts every X hours.

I hope you have found this useful.

This entry was posted in Tutorials. Bookmark the permalink.

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.