lihao has asked for the wisdom of the Perl Monks concerning the following question:
Hi, folks:
I am trying to parse some webpages which contain content generated by using Javascript function, for example, the source of HTML shows something like the following:(just a sample with jQuery as the JavaScript library)
<div id="content"></div> <script type="text/javascript"> var value = from_javascript_function(...); $(div#content).html(value); </script>
How can I grab the content displayed in <div>(id="content") on the web browser ?? Any Perl modules or some other tools... Many thanks for your suggestions
Regards,
lihao
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to download content generated by Javascript
by runrig (Abbot) on Mar 19, 2008 at 22:01 UTC | |
|
Re: How to download content generated by Javascript
by pc88mxer (Vicar) on Mar 19, 2008 at 21:49 UTC |