A small tool for turning a podcast feed into a tab-delimited list of entries
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
.gitignore
GEM_VERSION
Gemfile
Gemfile.lock
LICENSE
README.md
install.sh
tabcast.gemspec

README.md

#tabcast

a tool to turn, ugly messy podcast XML into lines of tab-seperated values that are easy to work with on the command line.

##Installation:

gem install tabcast

##Usage:

tabcast <feed url>

###Advanced Usage:

The default output format is probably fine for most purposes, but you can specify your own output format with the -f flag. This uses Liquid templating and renders the specified markup for each item in the feed. For example, to get a list of the titles and Unix timestamps of a feed's items, seperated by a pipe character:

tabcast -f "{{title}}|{{time}}\n" <feed url>

Note that the default output is equivalent to using:

-f "{{utime}}\t{{title | spaces_to_underscores}}\t{{enclosure_url}}\n"

--prefix and --suffix allow you to specify strings to be printed before and after the list of templated feed items. This is useful for, as an example, building up an HTML list of the feed:

tabcast -f "<li><a href='{{ enclosure_url }}'>{{ title }}</a></li>\n" --prefix "<ul>" --suffix "</ul>" <feed url>