Re: Parsing HTML with javascript ...

C K (sleepinginseattle@hotmail.com)
Wed, 21 Feb 2001 17:28:14 -0800


With javascript the only thing I can think of (and what we've done in 
catching javascript links) is re-parsing the current document in the 
$response object, with a pattern match of what your looking for, and then 
base url those found links (then either downloading those images as the 
image links are found or saving the image links to a log file).

Does anyone know if we can embedd javascript onto perl scripts or if there's 
a perl module out there that can handle javascript type links?



>From: "Viena Garcia Acosta" <viena@sodatec.org>
>Reply-To: viena@sodatec.org
>To: libwww@perl.org
>Subject: Parsing HTML with javascript ...
>Date: Wed, 21 Feb 2001 13:33:12 -0500
>
>Hi!
>
>I had been reading and searching all libwww-perl archive and more, and
>still not found an answer.
>
>I'm working at a project that takes a "fake" website and upload it to
>the real server. We start with the index page, and then upload
>every link referred by each different page.
>We use libwww-perl for that, we have an Upload module that use
>HTML::LinkExtor for parsing an HTML file and extracts all links.
>
>Everything was working fine. But now we have included some
>javascript code into the pages, to use common onload and
>mouseover attributes. But the images referred only in onload
>attribute of the body tag, or on the onmouseover att. of href tag, are
>not seeing by the parser and never uploaded to the real server.
>
>So, I'll like to ask if there's some solution already for this
>problem or maybe someone that is working at it.
>
>Thanks,
>Cheers
>
>Viena Garcia Acosta
>Webprogrammer
>SODATEC S.A.
>viena@sodatec.org
>(53-7) 275062

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com