in reply to how to access HTML within a javascript
JavaScript can create content for the browser dynamically. A page that is heavily dependent on JavaScript can be difficult to scrape or automate, because often first you've got to execute the JavaScript to see what content it produces.
While you're not going to find a Perl module with an embedded JavaScript interpreter, you can find tools that will help bail you out of a difficult situation. One is corion's WWW::Mechanize::Firefox. Another is Selenium (teamed up with CPAN modules that use selenium). Two totally different approaches. Both require a bit of work on your part as a programmer. But they are reasonable answers to the JavaScript problem.
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: how to access HTML within a javascript
by Anonymous Monk on Mar 20, 2013 at 07:00 UTC | |
by tobyink (Canon) on Mar 20, 2013 at 07:49 UTC | |
by Special_K (Monk) on Mar 20, 2013 at 15:41 UTC | |
by Anonymous Monk on Mar 20, 2013 at 15:59 UTC |
In Section
Seekers of Perl Wisdom