Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Using PERL ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 10852 of 12261
Post > Topic >>

Re: Using PERL to retrieve MP3s

by carnildo@[EMAIL PROTECTED] (Mark Wagner) Apr 3, 2008 at 02:10 PM

On 4/3/08, Jim <Evan.Dembskey@[EMAIL PROTECTED]
> wrote:
> Hi,
>
>  I am trying to write a PERL script to retrieve a couple of podcasts
>  per week.
>
>  Using use XML::RSS::TimingBot I can retrieve and print the .rss file,
>  but how do I extract the actual mp3 URL from $response->content?

Using a suitable regular expression.  Without knowing what
$response->content contains, I can't be sure if there's a better
solution, but

my ($url) = $response->content =~ /http:\S?\.mp3/;

should work.

-- 
Mark
 




 6 Posts in Topic:
Using PERL to retrieve MP3s
Evan.Dembskey@[EMAIL PROT  2008-04-03 05:49:52 
Re: Using PERL to retrieve MP3s
carnildo@[EMAIL PROTECTED  2008-04-03 14:10:05 
Re: Using PERL to retrieve MP3s
chas.owens@[EMAIL PROTECT  2008-04-03 17:37:49 
Re: Using PERL to retrieve MP3s
noreply@[EMAIL PROTECTED]  2008-04-04 00:32:39 
Re: Using PERL to retrieve MP3s
Evan.Dembskey@[EMAIL PROT  2008-04-04 02:22:00 
Re: Using PERL to retrieve MP3s
noreply@[EMAIL PROTECTED]  2008-04-04 15:22:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 17:49:14 CST 2008.