Re: Javascript Execution

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
* [email protected] wrote:
>I am working on a http agent which harvests various products and prices on
>a number of websites. The problem I run into is that some sites use
>javascript.

There is Win32::IE::Mechanize.

>After downloading a web page from my perl script, what I want to do is:
>1. Execute any existing javascript on the page.
>2. Modify the page according to the javascript results.
>3. Save the page to a local file.

Note that the scripts might not terminate, so you might get the DOM
at a specific point, but there is not necessarily a specific result.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.