Skip to content

Instantly share code, notes, and snippets.

@sharifulin
Created September 2, 2010 08:34
Show Gist options
  • Save sharifulin/562053 to your computer and use it in GitHub Desktop.
Save sharifulin/562053 to your computer and use it in GitHub Desktop.
Get mp3-url from podcast
#!/usr/bin/env perl
use common::sense;
use ojo;
die "Usage: $0 <podcast url>" unless @ARGV;
b(g( shift )->dom->find("enclosure[url]")->each(sub {
local $_ = shift->attrs->{url};
say if /\.mp3$/;
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment