XP is just a number | |
PerlMonks |
Using LWP instead of wget?by kingram (Acolyte) |
on Jul 26, 2012 at 22:42 UTC ( [id://983956]=perlquestion: print w/replies, xml ) | Need Help?? |
kingram has asked for the wisdom of the Perl Monks concerning the following question: While not new to Perl, I have spent more time on databases and Java and decided to try using Perl to download podcast info. I really like Perl, but it takes a little more effort to get things going with it. I want to download a large collection of podcasts which I have catalogued in a database. I downloaded the complete rss and catalogued the shows. Some of which I downloaded manually with wget I read in a previous post on here about someone using system(wget .....) in perl, but a follow-up post suggested LWP I'm not really getting in the LWP documentation how to do this. I'll read it again a little more closely, but if I need to spend 5 hours reading LWP, to get 30 or so files it's not an economical trade of time. It's easier to use system(wget -O...). However, if LWP is great, this would be my entry point to eventually become more fluent with it. Would anyone be willing to show me example code using LWP to download podcasts from an array (of selected choices), to a specific directory, with a specific name for each file? I think that would help me get a better grip on LWP's usefulness over wget in a perl script I have just about every other element of my automation done. This would be the last step. Thanks for your time
Back to
Seekers of Perl Wisdom
|
|