Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Need to Compile some Webpages...

by fuzzysteve (Beadle)
on Nov 27, 2001 at 05:54 UTC ( [id://127694]=note: print w/replies, xml ) Need Help??


in reply to Need to Compile some Webpages...

take a look at HTML::LinkExtor. Its part of html::parser.
it has a sample script that grabs a list of the img tags files from a given url. should be fairly simple to expand this to grab everything linked. then you just have to go through the grabbed document and rewrite any absolute links into relative one. should just be a case of using an regex.
of course, there are premade scripts/programs to do this. you just have to decide if they do what you want, and if you want to reinvent the wheel.(contrary to popular belief, there are reasons to do this. its a good way of learning new modules. if you have time that is)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 07:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found