logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

RE: LWP::Simple question: msg#00010

Subject: RE: LWP::Simple question
I forgot to include libwww@xxxxxxxxxxx :-)

Hi Andy, 

I've been reading up on WWW::Mechanize for a while now and I still can't
figure out how to get the file that contains all my url's loaded...  can you
please let me know if I'm close?

my $urls  = "/Program Files/OptiPerl/url.alls";   <--- this file is a local
file that looks like this:

http://www.spartanchemical.com/sfa/MSDSRep.nsf/docid/68674917D62B62C3852567D
8004E39BE?OpenDocument
http://www.spartanchemical.com/sfa/MSDSRep.nsf/docid/0BA3D2C7AF46CE8D852567D
3004E6108?OpenDocument

Can I load this local text file (urls.all) so WWW::Mechanize will check each
link one after the other?  This local file consist of 4K links...  My
intensions then are to have the STDOUT create two files good.urls and.... of
course bad.urls.  

Thanks for your help!

B 




-----Original Message-----
From: Andy Lester [mailto:andy@xxxxxxxxxxxx]
Sent: Friday, July 09, 2004 8:52 PM
To: Brian Volk
Cc: 'libwww@xxxxxxxx'
Subject: Re: LWP::Simple question 


>
> These are links to MSDS (material safety data sheets).  I need to 
> check and
> see which links are broken.   Is this a job for LWP::Simple?  If so can
> someone please explain how I am supposed to load the local file?

It's a job for WWW::Mechanize.

See http://search.cpan.org/dist/WWW-Mechanize/

Check the FAQ and the Cookbook.

xoxo,
Andy


--
Andy Lester => andy@xxxxxxxxxxxx => www.petdance.com => AIM:petdance



<Prev in Thread] Current Thread [Next in Thread>