Skip to content

Instantly share code, notes, and snippets.

@yusukebe
Created May 22, 2009 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yusukebe/115942 to your computer and use it in GitHub Desktop.
Save yusukebe/115942 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use LWP::UserAgent;
my $video_id = shift || 'v6558955QCb57mWk'; # default is true tears OP
my $api_key = '';
my $ua = LWP::UserAgent->new();
my $res = $ua->get( "http://www.veoh.com/rest/v2/execute.xml?method=veoh.video.findByPermalink&apiKey=$api_key&permalink=$vi\
deo_id" );
die "can't get api content!" unless $res->is_success;
$res->content =~ /ipodUrl="([^\"]+)"/;
my $ipod_url ||= $1 or die "can't find ipod url!";
print $ipod_url . "\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment