Coder Social home page Coder Social logo

bash-podcast-download's Introduction

Bash Podcast Download

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

##Usage Call the script using

sh podcast-download.sh http://myfeed.com/rss /PATH/TO/DOWNLOAD/FOLDER

###Optional

You can hardcode the feed and output path by changing the variables at the top of the file. You can then ommit the feed and folder when envoking the script

# Optional Variables
# You can hardcode the feed and url variables here to avoid sending them when envoking the script

FEED='http://myfeed.com/rss'
FOLDER='/PATH/TO/MY/FOLDER'

If the media file already exsists then the file is not downloaded.

Assumes that the RSS feed is formatted correctly with media in the correct hirachy

####Feed requirments

<?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>

####Platform Requirments This script was written on an OSX machine so assumes that you have the following programs installed

  • curl
  • xpath
  • egrep
  • sed

####TODO

  • Create option to rename files to the title of the item + original file extension
  • Create start and end paramaters to limit range of downloaded podcasts

bash-podcast-download's People

Contributors

mortocks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.