Created
September 2, 2010 08:34
-
-
Save sharifulin/562053 to your computer and use it in GitHub Desktop.
Get mp3-url from podcast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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