in reply to Project Help: Mechanize::Firefox - Scraping Websites with Javascript
The code you've shown is not valid Javascript, so you can't get at it in a convenient way.
If what you've shown actually is a mangled version of what otherwise would be valid Javascript, the easiest way is to pull over the value to Perl space:
my $myContests= $mech->eval_in_page('myContests'); print $myContests->{n}; print $myContests->{id};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Project Help: Mechanize::Firefox - Scraping Websites with Javascript
by jdlev (Scribe) on Sep 23, 2014 at 15:08 UTC | |
by Corion (Patriarch) on Sep 23, 2014 at 15:28 UTC | |
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 |