David J Effa wrote:
> 
> Hi,
> 
> Does anyone know of some of modules that will fetch an URL and save it 
> to a local system (easy) but also download all the page elements as well 
> (basically render the page and store the contents locally)?  I would 
> also like the fetched URL home page URLs for all the elements downloaded 
> to be rewritten to point to the location (of my choosing "Base" Relative 
> or Absolute) where all the render elements ended up.  Basically I want 
> to do a local cache of a remote web page.

You can use WWW::Mech or LWP::UserAgent with HTML::LinkExtor or lots
of other ways including letting your browser do it for you using the
save option (if it supports it).  Randall Schwartz has a script somewhere
that does something similar, but I can't find it at the moment - I know
I modified it to do something similar - it's on one of his websites as
a coding exampple possibly for an article he wrote.

I'll send a couple of examples of extracting links that you can play with.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to