in reply to Re^2: Project Help: Mechanize::Firefox - Scraping Websites with Javascript
in thread Project Help: Mechanize::Firefox - Scraping Websites with Javascript
I'm sorry - I should read the documentation closer. The code to fetch the variable should be:
my ($contest, $type) = $mech->eval_in_page( 'packageContests' );
But you should also use strict; at the top of your program. This would have immediately shown the wrong use of ->eval_in_page, as you get a number back instead of a proper reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Project Help: Mechanize::Firefox - Scraping Websites with Javascript
by jdlev (Scribe) on Sep 23, 2014 at 15:43 UTC | |
by Corion (Patriarch) on Sep 23, 2014 at 16:51 UTC | |
by jdlev (Scribe) on Sep 23, 2014 at 17:53 UTC |