in reply to Saving data from a web page?

If the page you want to grab is constructed using JavaScript write() (this trick is widely-known as client-side includes), then you are unlikely to succeed. The browsers just run this scriptlets while rendering the page. You won't see the result even if you "Save As" the page. And I don't know of any JavaScript engines available to Perl programs :(

Replies are listed 'Best First'.
Re: Re: Saving data from a web page?
by Biker (Priest) on Apr 16, 2002 at 14:19 UTC

    You can study the HTML document that 'includes' the external JavaScript file. The JS file is often called foo.js or something close to that.

    When you have the full URL of the .js file, some/many/all(?) http servers will let you surf the .js file as if it was an html document. As a result, you will see the full .js file in the browser.

    Disclaimer: I have tried this on a few servers and it was a while ago. But the technique should probably work in most cases.

    OTOH, I don't think this was what the original poster wanted to achieve.


    Everything went worng, just as foreseen.